diff options
Diffstat (limited to 'community/knot/knotd.initd')
-rw-r--r-- | community/knot/knotd.initd | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/community/knot/knotd.initd b/community/knot/knotd.initd index 49309869e5..8ec8600a9b 100644 --- a/community/knot/knotd.initd +++ b/community/knot/knotd.initd @@ -20,17 +20,17 @@ start_pre() { } stop() { - ebegin "Stopping ${name}" + ebegin "Stopping $name" /usr/sbin/knotc stop >/dev/null 2>&1 # Mark service as stopped if remote control was successful - if [ 0 -eq $? ]; then + if [ $? -eq 0 ]; then start-stop-daemon --stop --quiet --pidfile /var/run/knot/knot.pid fi eend $? } reload() { - ebegin "Reloading knot" + ebegin "Reloading $name" /usr/sbin/knotc reload >/dev/null eend $? } |