fix init script

This commit is contained in:
Ivana Varekova 2009-09-15 14:48:25 +00:00
parent 9865bc6fd4
commit ddf995195c
2 changed files with 13 additions and 4 deletions

View File

@ -1,6 +1,6 @@
diff -up sysstat-9.0.4/sysstat.in.ii sysstat-9.0.4/sysstat.in 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.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 @@ @@ -4,11 +4,13 @@
# @INIT_DIR@/sysstat # @INIT_DIR@/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr) # (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 RETVAL=0
SYSCONFIG_DIR=@SYSCONFIG_DIR@ SYSCONFIG_DIR=@SYSCONFIG_DIR@
@@ -27,11 +29,11 @@ case "$1" in @@ -27,15 +29,15 @@ case "$1" in
if [ -f "${exitCodeIndicator}" ]; then if [ -f "${exitCodeIndicator}" ]; then
rm -f ${exitCodeIndicator} rm -f ${exitCodeIndicator}
else 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) + 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}

View File

@ -1,6 +1,6 @@
Name: sysstat Name: sysstat
Version: 9.0.4 Version: 9.0.4
Release: 3%{?dist} Release: 4%{?dist}
Summary: The sar and iostat system monitoring commands Summary: The sar and iostat system monitoring commands
License: GPLv2+ License: GPLv2+
Group: Applications/System Group: Applications/System
@ -74,6 +74,9 @@ rm -rf %{buildroot}
%{_localstatedir}/log/sa %{_localstatedir}/log/sa
%changelog %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 * Mon Sep 14 2009 Ivana Varekova <varekova@redhat.com> - 9.0.4-3
- fix init script - add INIT INFO flags (#522740) - fix init script - add INIT INFO flags (#522740)
and add condrestart, try-restart and force-reload (#522743) and add condrestart, try-restart and force-reload (#522743)