]> git.pld-linux.org Git - packages/sysstat.git/commitdiff
- add restart sysstat service
authorundefine <undefine@pld-linux.org>
Tue, 2 Sep 2003 19:33:33 +0000 (19:33 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    sysstat.spec -> 1.38

sysstat.spec

index 043cc4ad4a5a8e74c72efe784db9d8a2096067e4..ce543d0fb6d857d12ba9ddef8faa041513c0d80e 100644 (file)
@@ -82,10 +82,20 @@ install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/sysstat
 rm -rf $RPM_BUILD_ROOT
 
 %post
-/sbin/chkconfig --add sysstat
+if [ "$1" = "1" ]; then
+       /sbin/chkconfig --add sysstat
+       echo "Run \"/etc/rc.d/init.d/sysstat start\" to start sysstat." >&2
+else
+       if [ -f /var/lock/subsys/sysstat ]; then
+               /etc/rc.d/init.d/sysstat restart >&2
+       fi
+fi
 
 %preun
 if [ "$1" = "0" ]; then
+       if [ -f /var/lock/subsys/sysstat ]; then
+               /etc/rc.d/init.d/sysstat stop >&2
+       fi
        /sbin/chkconfig --del sysstat
 fi
 
This page took 0.111655 seconds and 4 git commands to generate.