summaryrefslogtreecommitdiff
path: root/openwrt/package/monit/files
diff options
context:
space:
mode:
Diffstat (limited to 'openwrt/package/monit/files')
-rw-r--r--openwrt/package/monit/files/monit.init6
1 files changed, 5 insertions, 1 deletions
diff --git a/openwrt/package/monit/files/monit.init b/openwrt/package/monit/files/monit.init
index d1d6ce6f34..50b18de149 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 $?