head	1.2;
access;
symbols
	gentoo_1_0_rc5:1.1;
locks; strict;
comment	@# @;


1.2
date	2001.09.05.07.15.20;	author woodchip;	state dead;
branches;
next	1.1;

1.1
date	2001.01.20.01.05.43;	author achim;	state Exp;
branches;
next	;


desc
@@


1.2
log
@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
@
text
@#!/bin/sh
#RCUPDATE:3 4:99:This line is required for script management

. /etc/rc.d/config/functions

SERVICE=mon
EXE="/usr/sbin/mon"
PID="/var/run/mon.pid"

opts="start stop"

start() {
	ebegin "Starting ${SERVICE}..."
	start-stop-daemon --start --quiet --exec $EXE -- -P $PID -f 1>&2
	eend $?
}

stop() {
	ebegin "Stoppig ${SERVICE}..."
	start-stop-daemon --stop --quiet --pid $PID 1>&2
	eend $? "Error stopping $SERVICE"
}

restart () {
  stop
  start
}

doservice ${@@}
@


1.1
log
@*** empty log message ***
@
text
@@

