]> git.pld-linux.org Git - packages/nut.git/commitdiff
- reordered scripts auto/ac/nut-2_0_2-2
authorJakub Bogusz <qboosh@pld-linux.org>
Wed, 26 Oct 2005 07:47:45 +0000 (07:47 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    nut.spec -> 1.98

nut.spec

index 42e4ec33ddf51ac36c861a56dc4b92f7d4a93ba8..a171a8eb6f4d97e695ef0a16dbb49dd8f8a2a702 100644 (file)
--- a/nut.spec
+++ b/nut.spec
@@ -207,6 +207,22 @@ EOF
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post
+/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
+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
+
 %pre common
 # move to trigger?
 if [ -n "`/usr/bin/getgid ups`" ] && [ "`/usr/bin/getgid ups`" = 121 ]; then
@@ -217,14 +233,6 @@ fi
 %groupadd -g 76 ups
 %useradd -u 70 -d /usr/share/empty -s /bin/false -c "UPS Manager User" -g ups ups
 
-%post
-/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
-
 %post client
 /sbin/chkconfig --add upsmon
 if [ -f /var/lock/subsys/upsmon ]; then
@@ -233,14 +241,6 @@ else
        echo "Run \"/etc/rc.d/init.d/upsmon start\" to start NUT upsmon daemon."
 fi
 
-%preun
-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
-
 %preun client
 if [ "$1" = "0" ]; then
        if [ -f /var/lock/subsys/upsmon ]; then
This page took 0.056481 seconds and 4 git commands to generate.