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