summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaleb Tennis <caleb@gentoo.org>2008-02-06 19:47:56 +0000
committerCaleb Tennis <caleb@gentoo.org>2008-02-06 19:47:56 +0000
commitf60ed3969ea5db3f8b99dfb483a63a405548cbd6 (patch)
tree3a2f2b15e80111a3b68531163fbda36afcbf4433 /app-admin/monit/files/monit.initd-4.10.1
parentUpdating package.use.mask for hb and hb2 for evms. (diff)
downloadgentoo-2-f60ed3969ea5db3f8b99dfb483a63a405548cbd6.tar.gz
gentoo-2-f60ed3969ea5db3f8b99dfb483a63a405548cbd6.tar.bz2
gentoo-2-f60ed3969ea5db3f8b99dfb483a63a405548cbd6.zip
version bump
(Portage version: 2.1.4.1)
Diffstat (limited to 'app-admin/monit/files/monit.initd-4.10.1')
-rw-r--r--app-admin/monit/files/monit.initd-4.10.128
1 files changed, 28 insertions, 0 deletions
diff --git a/app-admin/monit/files/monit.initd-4.10.1 b/app-admin/monit/files/monit.initd-4.10.1
new file mode 100644
index 000000000000..42697ebf61ad
--- /dev/null
+++ b/app-admin/monit/files/monit.initd-4.10.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.10.1,v 1.1 2008/02/06 19:47:56 caleb 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 $?
+}