- stop plc services before upgrading
authorMark Huang <mlhuang@cs.princeton.edu>
Fri, 7 Apr 2006 17:12:25 +0000 (17:12 +0000)
committerMark Huang <mlhuang@cs.princeton.edu>
Fri, 7 Apr 2006 17:12:25 +0000 (17:12 +0000)
myplc.spec

index e8f8f10..d783f72 100644 (file)
@@ -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