X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/ce2e826d63f556202914a52bf41b15e344428f39..815e1cfba0c1f7a9adda5070a2c1e7a63b796cb0:/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 $?