summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-admin/mon/files')
-rw-r--r--app-admin/mon/files/digest-mon-0.38.20-r61
-rw-r--r--[-rwxr-xr-x]app-admin/mon/files/mon.rc5 (renamed from app-admin/mon/files/mon)0
-rw-r--r--app-admin/mon/files/mon.rc626
3 files changed, 27 insertions, 0 deletions
diff --git a/app-admin/mon/files/digest-mon-0.38.20-r6 b/app-admin/mon/files/digest-mon-0.38.20-r6
new file mode 100644
index 000000000000..316cf8b10b1a
--- /dev/null
+++ b/app-admin/mon/files/digest-mon-0.38.20-r6
@@ -0,0 +1 @@
+MD5 16449a0f715af8ae0893d707992c87cd mon-0.38.20.tar.bz2
diff --git a/app-admin/mon/files/mon b/app-admin/mon/files/mon.rc5
index f6aa304b54b7..f6aa304b54b7 100755..100644
--- a/app-admin/mon/files/mon
+++ b/app-admin/mon/files/mon.rc5
diff --git a/app-admin/mon/files/mon.rc6 b/app-admin/mon/files/mon.rc6
new file mode 100644
index 000000000000..10ddecdbb092
--- /dev/null
+++ b/app-admin/mon/files/mon.rc6
@@ -0,0 +1,26 @@
+#!/sbin/runscript
+
+depend() {
+ need clock
+}
+
+checkconfig() {
+ if [ ! -e /etc/mon/mon.cf ] ; then
+ eerror "You need an /etc/mon/mon.cf file to run mon"
+ eerror "There is a sample at /etc/mon/mon.cf.sample"
+ return 1
+ fi
+}
+
+start() {
+ checkconfig || return 1
+ ebegin "Starting mon"
+ start-stop-daemon --start --quiet --exec /usr/sbin/mon -- -P /var/run/mon.pid -f 1>&2
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping mon"
+ start-stop-daemon --stop --quiet --pid /var/run/mon.pid 1>&2
+ eend $?
+}