From: Alan Pevec Date: Tue, 11 Aug 2009 22:52:47 +0000 (+0200) Subject: contrib/fedora/init.d-collectd: Fix condrestart. X-Git-Tag: collectd-4.6.5~23 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=94f2ff236902035a1d549bbe393402ec30ee245f;p=collectd.git contrib/fedora/init.d-collectd: Fix condrestart. on upgrade collectd is not restarted https://bugzilla.redhat.com/show_bug.cgi?id=516273 Signed-off-by: Alan Pevec Signed-off-by: Florian Forster --- diff --git a/contrib/fedora/init.d-collectd b/contrib/fedora/init.d-collectd index 2bf877c1..ea8662ad 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}"