diff --git a/sysstat-9.0.4-init_script.patch b/sysstat-9.0.4-init_script.patch new file mode 100644 index 0000000..554426d --- /dev/null +++ b/sysstat-9.0.4-init_script.patch @@ -0,0 +1,27 @@ +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:22:34.000000000 +0200 +@@ -4,11 +4,13 @@ + # @INIT_DIR@/sysstat + # (C) 2000-2009 Sebastien Godard (sysstat orange.fr) + # ++### BEGIN INIT INFO + # Description: Reset the system activity logs ++# Short-Description: reset the system activity logs + #@(#) @PACKAGE_NAME@-@PACKAGE_VERSION@ startup script: + #@(#) Insert a dummy record in current daily data file. + #@(#) This indicates that the counters have restarted from 0. +-# ++### END INIT INFO + + RETVAL=0 + SYSCONFIG_DIR=@SYSCONFIG_DIR@ +@@ -31,7 +33,7 @@ case "$1" in + fi + echo + ;; +- stop|status|restart|reload) ++ stop|status|restart|reload|force-reload|condrestart|try-restart) + ;; + *) + echo "Usage: sysstat {start|stop|status|restart|reload}" diff --git a/sysstat.spec b/sysstat.spec index c69e4c4..4448df8 100644 --- a/sysstat.spec +++ b/sysstat.spec @@ -1,11 +1,12 @@ Name: sysstat Version: 9.0.4 -Release: 2%{?dist} +Release: 3%{?dist} Summary: The sar and iostat system monitoring commands License: GPLv2+ Group: Applications/System URL: http://perso.orange.fr/sebastien.godard/ Source: http://perso.orange.fr/sebastien.godard/%{name}-%{version}.tar.bz2 +Patch0: sysstat-9.0.4-init_script.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -21,6 +22,7 @@ activity. %prep %setup -q +%patch0 -p1 -b .ii iconv -f windows-1252 -t utf8 CREDITS > CREDITS.aux mv CREDITS.aux CREDITS @@ -72,6 +74,10 @@ rm -rf %{buildroot} %{_localstatedir}/log/sa %changelog +* 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) + * Sun Jul 26 2009 Fedora Release Engineering - 9.0.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild