openbsd-ports/net/mrtg/pkg/mrtg.rc
ajacoutot 4ec44530ca Simplify after recent rc.subr change.
The framework is now stable and we will start documenting it (at last).
2010-12-27 14:50:22 +00:00

13 lines
327 B
Bash

#!/bin/sh
#
# $OpenBSD: mrtg.rc,v 1.3 2010/12/27 14:50:23 ajacoutot Exp $
daemon="${TRUEPREFIX}/bin/mrtg"
daemon_flags="--daemon --user _mrtg --group _mrtg --confcache-file /tmp/mrtg.ok --lock-file /tmp/mrtg_lock --pid-file /var/run/mrtg.pid"
. /etc/rc.d/rc.subr
pexp="/usr/bin/perl -w ${daemon} ${daemon_flags}"
rc_cmd $1