X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/ce2e826d63f556202914a52bf41b15e344428f39..a1d1cc5f82fbb4e48ddfffd5c912d0de6fbbd111:/openwrt/package/monit/files/monit.init diff --git a/openwrt/package/monit/files/monit.init b/openwrt/package/monit/files/monit.init index d1d6ce6f3..50b18de14 100644 --- a/openwrt/package/monit/files/monit.init +++ b/openwrt/package/monit/files/monit.init @@ -14,8 +14,12 @@ case $1 in stop) [ -f $PID_F ] && kill $(cat $PID_F) ;; + restart) + $0 stop + $0 start + ;; *) - echo "usage: $0 (start|stop)" + echo "usage: $0 (start|stop|restart)" exit 1 esac exit $?