]> git.pld-linux.org Git - packages/openslp.git/commitdiff
- reverting last change: removing new macros from %p{re,ost}{,un}
authorsaq <saq@pld-linux.org>
Thu, 26 Jul 2001 05:42:22 +0000 (05:42 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    openslp.spec -> 1.4

openslp.spec

index 7d3d6085a3e90115c7b0842db1831ff9c8932671..629570fda82585d6b0138dc1703d2a784929effb 100644 (file)
@@ -44,10 +44,22 @@ gzip -9nf AUTHORS NEWS README doc/rfc/*
 
 %post
 /sbin/ldconfig
-NAME=slpd; DESC="OpenSLP server"; %chkconfig_add
+/sbin/chkconfig --add slpd
+
+if [ -r /var/lock/subsys/slpd ]; then
+       /etc/rc.d/init.d/slpd restart >&2
+else
+       echo "Run \"/etc/rc.d/init.d/slpd start\" to start OpenSLP server."
+fi
+
 
 %preun
-NAME=slpd; %chkconfig_del
+if [ "$1" = "0" ]; then
+       if [ -f /var/lock/subsys/slpd ]; then
+               /etc/rc.d/init.d/slpd stop
+       fi
+       /sbin/chkconfig --del slpd
+fi
 
 %postun -p /sbin/ldconfig
 
This page took 0.068555 seconds and 4 git commands to generate.