summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatsuu Takuto <matsuu@gentoo.org>2006-06-10 13:39:56 +0000
committerMatsuu Takuto <matsuu@gentoo.org>2006-06-10 13:39:56 +0000
commitb2bc159a8201a196841c14512b8e259d0767e160 (patch)
treefc4e7a44f1827c04b44d7d2cd42a3fb33ebdfc85 /app-admin/monit/files/monit.initd-4.8.1
parentfew little QA fixes (diff)
downloadhistorical-b2bc159a8201a196841c14512b8e259d0767e160.tar.gz
historical-b2bc159a8201a196841c14512b8e259d0767e160.tar.bz2
historical-b2bc159a8201a196841c14512b8e259d0767e160.zip
Version bumped, Bug 132609.
Package-Manager: portage-2.1_rc4-r5
Diffstat (limited to 'app-admin/monit/files/monit.initd-4.8.1')
-rw-r--r--app-admin/monit/files/monit.initd-4.8.128
1 files changed, 28 insertions, 0 deletions
diff --git a/app-admin/monit/files/monit.initd-4.8.1 b/app-admin/monit/files/monit.initd-4.8.1
new file mode 100644
index 000000000000..58a2fb820ce9
--- /dev/null
+++ b/app-admin/monit/files/monit.initd-4.8.1
@@ -0,0 +1,28 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: /var/cvsroot/gentoo-x86/app-admin/monit/files/monit.initd-4.8.1,v 1.1 2006/06/10 13:39:56 matsuu Exp $
+
+opts="${opts} reload"
+
+depend() {
+ use net
+}
+
+start() {
+ ebegin "Starting monit"
+ start-stop-daemon --start --quiet --exec /usr/bin/monit >/dev/null 2>&1
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping monit"
+ start-stop-daemon --stop --quiet --exec /usr/bin/monit
+ eend $?
+}
+
+reload() {
+ ebegin "Reloading monit"
+ /usr/bin/monit -c /etc/monitrc reload >/dev/null 2>&1
+ eend $?
+}