summaryrefslogtreecommitdiff
path: root/package/monit/files
diff options
context:
space:
mode:
Diffstat (limited to 'package/monit/files')
-rw-r--r--package/monit/files/monit.init4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/monit/files/monit.init b/package/monit/files/monit.init
index d4d914f95..b0d1f1f73 100644
--- a/package/monit/files/monit.init
+++ b/package/monit/files/monit.init
@@ -11,10 +11,10 @@ autostart)
exec sh $0 start
;;
start)
- monit $monit_flags
+ /usr/sbin/monit $monit_flags
;;
stop)
- pkill monit
+ kill $(pgrep -f /usr/sbin/monit )
;;
restart)
sh $0 stop