according to Mark's explanation
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Thu, 20 Apr 2006 08:59:09 +0000 (08:59 +0000)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Thu, 20 Apr 2006 08:59:09 +0000 (08:59 +0000)
performs 'service plc stop' inside the conditional within %preun

myplc.spec

index f866858..5ad9e5f 100644 (file)
@@ -78,8 +78,8 @@ chkconfig plc on
 
 %preun
 # 0 = erase, 1 = upgrade
-service plc stop
 if [ $1 -eq 0 ] ; then
+    service plc stop
     chkconfig plc off
     chkconfig --del plc
 fi