]> git.pld-linux.org Git - packages/daemontools.git/commitdiff
- use macros in %{pre,post}{,un}
authorsaq <saq@pld-linux.org>
Wed, 25 Jul 2001 16:30:43 +0000 (16:30 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- need rebuilt rpm (with new macros.pld) to build these

Changed files:
    daemontools.spec -> 1.14

daemontools.spec

index 89a1e009bdba5dc0df7895f3ae65cd3b221180b7..2789fcd08120e54d6d076a7b3ebb91f3d8434717 100644 (file)
@@ -69,20 +69,10 @@ gzip -9nf CHANGES README TODO
 rm -rf $RPM_BUILD_ROOT
 
 %post
-/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
+NAME=svscan; DESC="svscan daemon"; %chkconfig_add
 
 %preun
-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
+NAME=svscan; %chkconfig_del
 
 %files
 %defattr(644,root,root,755)
This page took 0.08665 seconds and 4 git commands to generate.