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

nut.spec

index 24bf052f022f6cd60629fdbe8004105ff6cbc7e0..2dbd51f5906c2ff5bb57298cac57e1eadf3f76f1 100644 (file)
--- a/nut.spec
+++ b/nut.spec
@@ -87,10 +87,20 @@ install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/ups
 gzip -9nf CREDITS README docs/{FAQ,Changes*,*.txt,cables/*}
 
 %post
-NAME=ups; DESC="NUT ups daemon"; %chkconfig_add
+/sbin/chkconfig --add ups
+if [ -f /var/lock/subsys/ups ]; then
+       /etc/rc.d/init.d/ups restart >&2
+else
+       echo "Run \"/etc/rc.d/init.d/ups start\" to start NUT ups daemon."
+fi
 
 %preun
-NAME=ups; %chkconfig_del
+if [ "$1" = "0" ]; then
+       if [ -f /var/lock/subsys/ups ]; then
+               /etc/rc.d/init.d/ups stop >&2
+       fi
+       /sbin/chkconfig --del ups
+fi
 
 %clean
 rm -rf $RPM_BUILD_ROOT
This page took 0.048459 seconds and 4 git commands to generate.