- fix init script - add INIT INFO flags (#522740) and add condrestart,
try-restart and force-reload (#522743)
This commit is contained in:
parent
c1d11e9093
commit
dee2158b5a
27
sysstat-9.0.4-init_script.patch
Normal file
27
sysstat-9.0.4-init_script.patch
Normal file
@ -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 <at> 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}"
|
@ -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 <varekova@redhat.com> - 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 <rel-eng@lists.fedoraproject.org> - 9.0.4-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user