summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonny Davies <woodchip@gentoo.org>2001-09-05 07:15:20 +0000
committerDonny Davies <woodchip@gentoo.org>2001-09-05 07:15:20 +0000
commitb6d547918d664c1b1513584578356b9f859d9fd0 (patch)
tree61c360a4ce4020fce0850634fda7d1b033741d53 /app-admin/mon/files
parent*** empty log message *** (diff)
downloadgentoo-2-b6d547918d664c1b1513584578356b9f859d9fd0.tar.gz
gentoo-2-b6d547918d664c1b1513584578356b9f859d9fd0.tar.bz2
gentoo-2-b6d547918d664c1b1513584578356b9f859d9fd0.zip
OK this one has rc5 and rc6 versions now. It compiles and installs
fine with no problems. BUT when you attempt to run the program, say like: /etc/init.d/mon start for example, it doesnt work atm. I think it would be easy to fix, for somebody up on Perl. I avoid Perl at all costs, like the plauge! At first, it complained that it couldnt locate some Perl Time-HiRes module. So I figured OK, I'll add that to the RDEPENDS. I added >=dev-perl/Time-HiRes-01.20 as such and tried to run it again. Well that error went away, but now it complains it cannot find Time/Period.pm... arrgh. I hate Perl with a passion, and I dont use mon. So if you're reading this, go ahead and try to debug it, I ain't spending any more time on it! Hehe. =P
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 $?
+}