From: Mark Huang Date: Fri, 7 Apr 2006 17:12:25 +0000 (+0000) Subject: - stop plc services before upgrading X-Git-Tag: myplc-0_4-rc1~84 X-Git-Url: http://git.onelab.eu/?p=myplc.git;a=commitdiff_plain;h=a734f5acf9ea08642131a594382e0360a7c56aa4 - stop plc services before upgrading --- diff --git a/myplc.spec b/myplc.spec index e8f8f10..d783f72 100644 --- a/myplc.spec +++ b/myplc.spec @@ -70,6 +70,11 @@ if [ -n "$SUDO_USER" ] ; then chown -R $SUDO_USER %{_rpmdir}/%{_arch} fi +%pre +if [ -x %{_sysconfdir}/init.d/plc ] ; then + service plc stop +fi + %post chkconfig --add plc chkconfig plc on