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

ntp.spec

index be8798e1cc33203e19889638070578df62fb3566..128e0a3913b8353246b12146f1f15a0b2213d632 100644 (file)
--- a/ntp.spec
+++ b/ntp.spec
@@ -84,10 +84,21 @@ gzip -9nf NEWS TODO conf/*.conf
 rm -rf $RPM_BUILD_ROOT
 
 %post
-DESC="ntp daemon"; %chkconfig_add
+/sbin/chkconfig --add ntp
+
+if [ -f /var/lock/subsys/ntp ]; then
+       /etc/rc.d/init.d/ntp restart >&2
+else
+       echo "Run \"/etc/rc.d/init.d/ntp start\" to start ntp daemon."
+fi
     
 %preun
-%chkconfig_del
+if [ "$1" = "0" ]; then
+       if [ -f /var/lock/subsys/ntp ]; then
+               /etc/rc.d/init.d/ntp stop >&2
+       fi
+       /sbin/chkconfig --del ntp
+fi
 
 %files
 %defattr(644,root,root,755)
This page took 0.147685 seconds and 4 git commands to generate.