aboutsummaryrefslogtreecommitdiffstats
path: root/testing/monit/monit.initd
diff options
context:
space:
mode:
Diffstat (limited to 'testing/monit/monit.initd')
-rw-r--r--testing/monit/monit.initd39
1 files changed, 0 insertions, 39 deletions
diff --git a/testing/monit/monit.initd b/testing/monit/monit.initd
deleted file mode 100644
index 4163c988b8..0000000000
--- a/testing/monit/monit.initd
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2011 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-5.0-r1,v 1.2 2011/12/31 16:28:50 idl0r Exp $
-
-extra_commands="configtest"
-extra_started_commands="reload"
-
-depend() {
- use net
-}
-
-configtest() {
- /usr/bin/monit -t 1>/dev/null 2>&1
- ret=$?
- if [ $ret -ne 0 ]; then
- eerror "${SVCNAME} has detected an error in your setup:"
- /usr/bin/monit -t
- fi
- return $ret
-}
-
-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 $?
-}