X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/4893a2447542fbc8b833bb34de6a467abd1ab2ce..a8a5cb3d3e063e5e6d1a499c66459d2ea3da1817:/package/monit/files/monit.init?ds=sidebyside diff --git a/package/monit/files/monit.init b/package/monit/files/monit.init index d1d6ce6f3..50b18de14 100644 --- a/package/monit/files/monit.init +++ b/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 $?