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

daemontools.spec

index 2789fcd08120e54d6d076a7b3ebb91f3d8434717..89a1e009bdba5dc0df7895f3ae65cd3b221180b7 100644 (file)
@@ -69,10 +69,20 @@ gzip -9nf CHANGES README TODO
 rm -rf $RPM_BUILD_ROOT
 
 %post
-NAME=svscan; DESC="svscan daemon"; %chkconfig_add
+/sbin/chkconfig --add svscan
+if [ -f /var/lock/subsys/svscan ]; then
+       /etc/rc.d/init.d/svscan restart >&2
+else
+       echo "Execute \"/etc/rc.d/init.d/svscan\" to start svscan daemon."
+fi
 
 %preun
-NAME=svscan; %chkconfig_del
+if [ "$1" = "0" ]; then
+       if [ -f /var/lock/subsys/svscan ]; then
+               /etc/rc.d/init.d/svscan stop >&2
+       fi
+       /sbin/chkconfig --del svscan
+fi
 
 %files
 %defattr(644,root,root,755)
This page took 0.050739 seconds and 4 git commands to generate.