]> git.pld-linux.org Git - packages/dante.git/commitdiff
- standarize %post/%postun in server subpackage. dante-1_1_12-1
authorkloczek <kloczek@pld-linux.org>
Wed, 5 Jun 2002 19:08:10 +0000 (19:08 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    dante.spec -> 1.18

dante.spec

index da3bfe4fc2a55794577339b1d2a8635ab65a1c88..d3f404b79a98eba6679eb7de0abc518374306b62 100644 (file)
@@ -98,9 +98,17 @@ rm -rf $RPM_BUILD_ROOT
 
 %post server
 /sbin/chkconfig --add sockd
+if [ -f /var/lock/subsys/sockd ]; then
+       /etc/rc.d/init.d/sockd restart 1>&2
+else
+       echo "Run \"/etc/rc.d/init.d/sockd start\" to start dante sockd daemon."
+fi
 
 %postun server
-if [ $1 = 0 ]; then
+if [ "$1" = "0" ]; then
+       if [ -f /var/lock/subsys/sockd ]; then
+               /etc/rc.d/init.d/sockd stop 1>&2
+       fi
        /sbin/chkconfig --del sockd
 fi
 
This page took 0.094575 seconds and 4 git commands to generate.