openbsd-ports/net/mrtg/pkg/mrtg.rc
ajacoutot 025ed98a5d Re-add the rc script after previous commit: don't trust update-plist,
it's still broken and remove @rcscript from the PLIST.
While here, fix pexp.
2011-03-20 06:43:47 +00:00

13 lines
344 B
Bash

#!/bin/sh
#
# $OpenBSD: mrtg.rc,v 1.4 2011/03/20 06:43:47 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:+ ${daemon_flags}}"
rc_cmd $1