[collectd] [PATCH] fix condrestart in contrib/fedora/init.d-collectd

Alan Pevec apevec at redhat.com
Wed Aug 12 00:52:47 CEST 2009


on upgrade collectd is not restarted
https://bugzilla.redhat.com/show_bug.cgi?id=516273

Signed-off-by: Alan Pevec <apevec at redhat.com>
---
 contrib/fedora/init.d-collectd |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/contrib/fedora/init.d-collectd b/contrib/fedora/init.d-collectd
index 2bf877c..ea8662a 100644
--- a/contrib/fedora/init.d-collectd
+++ b/contrib/fedora/init.d-collectd
@@ -54,7 +54,7 @@ case "$1" in
 	start
 	;;
   condrestart)
-	[ -f /var/lock/subsys/$prog ] && restart || :
+	[ -f /var/lock/subsys/$prog ] && stop && start || :
 	;;
   *)
 	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
-- 
1.6.0.6




More information about the collectd mailing list