fix init script
This commit is contained in:
parent
9865bc6fd4
commit
ddf995195c
@ -1,6 +1,6 @@
|
||||
diff -up sysstat-9.0.4/sysstat.in.ii sysstat-9.0.4/sysstat.in
|
||||
--- sysstat-9.0.4/sysstat.in.ii 2009-02-15 15:49:24.000000000 +0100
|
||||
+++ sysstat-9.0.4/sysstat.in 2009-09-14 15:47:07.000000000 +0200
|
||||
+++ sysstat-9.0.4/sysstat.in 2009-09-15 16:47:02.000000000 +0200
|
||||
@@ -4,11 +4,13 @@
|
||||
# @INIT_DIR@/sysstat
|
||||
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
|
||||
@ -16,7 +16,7 @@ diff -up sysstat-9.0.4/sysstat.in.ii sysstat-9.0.4/sysstat.in
|
||||
|
||||
RETVAL=0
|
||||
SYSCONFIG_DIR=@SYSCONFIG_DIR@
|
||||
@@ -27,11 +29,11 @@ case "$1" in
|
||||
@@ -27,15 +29,15 @@ case "$1" in
|
||||
if [ -f "${exitCodeIndicator}" ]; then
|
||||
rm -f ${exitCodeIndicator}
|
||||
else
|
||||
@ -29,4 +29,10 @@ diff -up sysstat-9.0.4/sysstat.in.ii sysstat-9.0.4/sysstat.in
|
||||
+ stop|status|restart|reload|force-reload|condrestart|try-restart)
|
||||
;;
|
||||
*)
|
||||
echo "Usage: sysstat {start|stop|status|restart|reload}"
|
||||
- echo "Usage: sysstat {start|stop|status|restart|reload}"
|
||||
- exit 1
|
||||
+ echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
|
||||
+ exit 2
|
||||
esac
|
||||
exit ${RETVAL}
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
Name: sysstat
|
||||
Version: 9.0.4
|
||||
Release: 3%{?dist}
|
||||
Release: 4%{?dist}
|
||||
Summary: The sar and iostat system monitoring commands
|
||||
License: GPLv2+
|
||||
Group: Applications/System
|
||||
@ -74,6 +74,9 @@ rm -rf %{buildroot}
|
||||
%{_localstatedir}/log/sa
|
||||
|
||||
%changelog
|
||||
* Tue sep 15 2009 Ivana Varekova <varekova@redhat.com> - 9.0.4-4
|
||||
- fix init script
|
||||
|
||||
* Mon Sep 14 2009 Ivana Varekova <varekova@redhat.com> - 9.0.4-3
|
||||
- fix init script - add INIT INFO flags (#522740)
|
||||
and add condrestart, try-restart and force-reload (#522743)
|
||||
|
Loading…
Reference in New Issue
Block a user