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

at.spec

diff --git a/at.spec b/at.spec
index f8e2d95524042ea930ecf5cf48a3f3e99bc23115..729e3dff5d43bac24959cd9f6d9bf4e5514aec5f 100644 (file)
--- a/at.spec
+++ b/at.spec
@@ -122,10 +122,20 @@ gzip -9nf $RPM_BUILD_ROOT%{_mandir}/{man*/*,pl/man?/*} \
 rm -rf $RPM_BUILD_ROOT
 
 %post
 rm -rf $RPM_BUILD_ROOT
 
 %post
-NAME=atd; DESC="atd daemon"; %chkconfig_add
+/sbin/chkconfig --add atd
+if [ -f /var/lock/subsys/atd ]; then
+       /etc/rc.d/init.d/atd restart >&2
+else
+       echo "Run \"/etc/rc.d/init.d/atd start\" to start atd daemon."
+fi
 
 %preun
 
 %preun
-NAME=atd; %chkconfig_del
+if [ "$1" = "0" ] ; then
+       if [ -f /var/lock/subsys/atd ]; then
+               /etc/rc.d/init.d/atd stop >&2
+       fi
+       /sbin/chkconfig --del atd
+fi
 
 %files
 %defattr(644,root,root,755)
 
 %files
 %defattr(644,root,root,755)
This page took 0.0763 seconds and 4 git commands to generate.