Code

contrib/fedora/init.d-collectd: Fix condrestart.
authorAlan Pevec <apevec@redhat.com>
Tue, 11 Aug 2009 22:52:47 +0000 (00:52 +0200)
committerFlorian Forster <octo@huhu.verplant.org>
Mon, 17 Aug 2009 07:40:31 +0000 (09:40 +0200)
on upgrade collectd is not restarted
https://bugzilla.redhat.com/show_bug.cgi?id=516273

Signed-off-by: Alan Pevec <apevec@redhat.com>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
contrib/fedora/init.d-collectd

index 2bf877c108066187df24971514e0f69876322c43..ea8662ad60117b6e13cabd8c330a87d3c08f8a00 100644 (file)
@@ -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}"