[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[monit-dev] [monit] r261 committed - update the upstart script for curre
From: |
monit |
Subject: |
[monit-dev] [monit] r261 committed - update the upstart script for current ubuntu |
Date: |
Sat, 18 Sep 2010 03:30:28 +0000 |
Revision: 261
Author: martin2812
Date: Fri Sep 17 20:29:31 2010
Log: update the upstart script for current ubuntu
http://code.google.com/p/monit/source/detail?r=261
Modified:
/trunk/contrib/monit.upstart
=======================================
--- /trunk/contrib/monit.upstart Thu Jun 4 12:28:53 2009
+++ /trunk/contrib/monit.upstart Fri Sep 17 20:29:31 2010
@@ -1,9 +1,15 @@
-# This is an event.d (upstart) script to keep monit running
+# This is an event.d (upstart) script to keep monit running.
# To install disable the old way of doing things:
#
# /etc/init.d/monit stop && update-rc.d -f monit remove
#
-# then put this script here: /etc/event.d/monit
+# then put this script here:
+#
+# /etc/init/monit.conf
+#
+# and reload upstart configuration:
+#
+# initctl reload-configuration
#
# You can manually start and stop monit like this:
#
@@ -11,16 +17,19 @@
# stop monit
#
# Michael Hale (http://halethegeek.com)
-
-start on runlevel 2
-start on runlevel 3
-start on runlevel 4
-start on runlevel 5
-
-stop on runlevel 0
-stop on runlevel 6
-
-exec /usr/sbin/monit -Ic /etc/monit/monitrc
-instance
+# Martin Pala (http://www.mmonit.com)
+
+description "Monit service manager"
+
+limit core unlimited unlimited
+
+start on runlevel [2345]
+stop on runlevel [!2345]
+
+expect daemon
respawn
+exec /usr/local/bin/monit -c /etc/monitrc
+
+pre-stop exec /usr/local/bin/monit -c /etc/monitrc quit
+
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [monit-dev] [monit] r261 committed - update the upstart script for current ubuntu,
monit <=