- reverting last change: removing new macros from %p{re,ost}{,un}
authorsaq <saq@pld-linux.org>
Thu, 26 Jul 2001 05:42:03 +0000 (05:42 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    anacron.spec -> 1.16

anacron.spec

index ba1356947e161a8de2e33dafb76ef5131b073f4a..b7f214f879c0ccca4565d930e3d92102117a3dc5 100644 (file)
@@ -77,10 +77,22 @@ done
 gzip -9nf ChangeLog README TODO
 
 %post
-DESC="Anacron daemon"; %chkconfig_add
+/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
 
 %preun
-%chkconfig_del
+/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
 
 %clean 
 rm -rf $RPM_BUILD_ROOT
This page took 0.03103 seconds and 4 git commands to generate.