- reverting last change: removing new macros from %p{re,ost}{,un}
[packages/anacron.git] / 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.081782 seconds and 4 git commands to generate.