update monit to new upstream release (v4.6),
[openwrt-10.03/.git] / package / monit / files / monit.init
index d1d6ce6f34985cca83b3028a18bc1ce0677c0948..50b18de149597aa65ca97ad6e74113c05fa9e995 100644 (file)
@@ -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 $?