From ddf995195cb44ac7551c906cb44751588a9a4032 Mon Sep 17 00:00:00 2001 From: Ivana Varekova Date: Tue, 15 Sep 2009 14:48:25 +0000 Subject: [PATCH] fix init script --- sysstat-9.0.4-init_script.patch | 12 +++++++++--- sysstat.spec | 5 ++++- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/sysstat-9.0.4-init_script.patch b/sysstat-9.0.4-init_script.patch index dae780d..8f21172 100644 --- a/sysstat-9.0.4-init_script.patch +++ b/sysstat-9.0.4-init_script.patch @@ -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 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} + diff --git a/sysstat.spec b/sysstat.spec index 4448df8..3faa2bf 100644 --- a/sysstat.spec +++ b/sysstat.spec @@ -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 - 9.0.4-4 +- fix init script + * Mon Sep 14 2009 Ivana Varekova - 9.0.4-3 - fix init script - add INIT INFO flags (#522740) and add condrestart, try-restart and force-reload (#522743)