- use macros in %{pre,post}{,un}
authorsaq <saq@pld-linux.org>
Wed, 25 Jul 2001 16:30:40 +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:
    anacron.spec -> 1.14

anacron.spec

index b7f214f..61b681b 100644 (file)
@@ -77,22 +77,10 @@ done
 gzip -9nf ChangeLog README TODO
 
 %post
-/sbin/chkconfig --add anacron
-
-if [ -f /var/lock/subsys/anacron ]; then
-       /etc/rc.d/init.d/anacron restart >&2
-else
-       echo "Run \"/etc/rc.d/init.d/anacron start\" to start Anacron daemon."
-fi
+DESC="Anacron daemon"; %chkconfig_post
 
 %preun
-/sbin/chkconfig --del anacron
-if [ "$1" = "0" ];then
-       if [ -f /var/lock/subsys/anacron ]; then
-               /etc/rc.d/init.d/anacron stop >&2
-       fi
-       /sbin/chkconfig --del anacron
-fi
+%chkconfig_preun
 
 %clean 
 rm -rf $RPM_BUILD_ROOT
This page took 0.040876 seconds and 4 git commands to generate.