contrib/fedora/init.d-collectd: Fix condrestart.
[collectd.git] / contrib / fedora / init.d-collectd
index 2bf877c..ea8662a 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}"