update monit to new upstream release (v4.6), split in 2 packages (w/ and w/o ssl...
[openwrt/staging/dedeckeh.git] / openwrt / 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 $?