2011-05-05 17:49:48 -04:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2011-05-06 09:04:08 -04:00
|
|
|
# $OpenBSD: nfsen.rc,v 1.2 2011/05/06 13:04:08 sthen Exp $
|
2011-05-05 17:49:48 -04:00
|
|
|
|
|
|
|
daemon="${TRUEPREFIX}/bin/nfsend"
|
|
|
|
|
|
|
|
. /etc/rc.d/rc.subr
|
|
|
|
|
|
|
|
ctl="${TRUEPREFIX}/bin/nfsen"
|
|
|
|
pexp="/usr/bin/perl -w ${daemon}"
|
|
|
|
|
2011-05-06 09:04:08 -04:00
|
|
|
# nfsen reconfig is interactive when certain changes are made
|
|
|
|
rc_reload=NO
|
|
|
|
|
2011-05-05 17:49:48 -04:00
|
|
|
rc_start() {
|
|
|
|
${rcexec} "${ctl} start"
|
|
|
|
}
|
|
|
|
|
|
|
|
rc_stop() {
|
2011-05-06 09:04:08 -04:00
|
|
|
${ctl} stop
|
2011-05-05 17:49:48 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
rc_cmd $1
|