openbsd-ports/net/mon/server/pkg/mon.rc
2011-03-20 06:36:55 +00:00

19 lines
361 B
Bash

#!/bin/sh
#
# $OpenBSD: mon.rc,v 1.6 2011/03/20 06:36:55 ajacoutot Exp $
daemon="${TRUEPREFIX}/bin/mon"
daemon_flags="-c ${SYSCONFDIR}/mon/mon.cf -f -P /var/run/mon/mon.pid"
daemon_user="_mon"
. /etc/rc.d/rc.subr
pexp="/usr/bin/perl ${daemon}${daemon_flags:+ ${daemon_flags}}"
rc_reload=NO
rc_pre() {
/usr/bin/install -d -o _mon /var/run/mon
}
rc_cmd $1