add common functions for the new config file format
[openwrt.git] / openwrt / package / monit / files / monit.init
index d1d6ce6..50b18de 100644 (file)
@@ -14,8 +14,12 @@ case $1 in
  stop)
   [ -f $PID_F ] && kill $(cat $PID_F)
   ;;
  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 $?
   exit 1
 esac
 exit $?
This page took 0.0317 seconds and 4 git commands to generate.