X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/4893a2447542fbc8b833bb34de6a467abd1ab2ce..293e3b3d44b062a95d9e7fe2362bb89389d0c0b4:/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 $?