]> git.pld-linux.org Git - packages/apmd.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:
    apmd.spec -> 1.25

apmd.spec

index 5905a4a70127a0a765db6323e0dd162eb19d9940..5de1253c856e1a93e61b64937d10652a90cef229 100644 (file)
--- a/apmd.spec
+++ b/apmd.spec
@@ -98,10 +98,20 @@ gzip -9nf README README.transfer ChangeLog ANNOUNCE
 rm -rf $RPM_BUILD_ROOT
 
 %post
-DESC="apmd daemon"; %chkconfig_add
+/sbin/chkconfig --add apmd
+if [ -f /var/lock/subsys/apmd ]; then
+       /etc/rc.d/init.d/apmd restart 1>&2
+else
+       echo "Run \"/etc/rc.d/init.d/apmd start\" to start apmd daemon."
+fi
 
 %preun
-%chkconfig_del
+if [ "$1" = "0" ]; then
+       if [ -f /var/lock/subsys/apmd ]; then
+               /etc/rc.d/init.d/apmd stop 1>&2
+       fi
+       /sbin/chkconfig --del apmd
+fi
 
 %files
 %defattr(644,root,root,755)
This page took 0.133901 seconds and 4 git commands to generate.