tweaks following feedback from aja@; ok aja.

- don't use ${rcexec} where not needed

- disable reloads; if certain config changes are made, manual confirmation
is required, users should use the standard "/usr/local/bin/nfsen reconfigure"
by hand.
This commit is contained in:
sthen 2011-05-06 13:04:08 +00:00
parent 695dfde829
commit aabc136010
2 changed files with 7 additions and 8 deletions

View File

@ -1,11 +1,11 @@
# $OpenBSD: Makefile,v 1.8 2011/05/05 21:49:48 sthen Exp $
# $OpenBSD: Makefile,v 1.9 2011/05/06 13:04:08 sthen Exp $
MULTI_PACKAGES= -main -web
COMMENT-main= web-based front end for the nfdump netflow tools
COMMENT-web= html/php parts for nfsen
V= 1.3.5
REVISION-main= 0
REVISION-main= 1
DISTNAME= nfsen-$V
PKGNAME-main= ${DISTNAME}
PKGNAME-web= nfsen-web-$V

View File

@ -1,6 +1,6 @@
#!/bin/sh
#
# $OpenBSD: nfsen.rc,v 1.1 2011/05/05 21:49:48 sthen Exp $
# $OpenBSD: nfsen.rc,v 1.2 2011/05/06 13:04:08 sthen Exp $
daemon="${TRUEPREFIX}/bin/nfsend"
@ -9,16 +9,15 @@ daemon="${TRUEPREFIX}/bin/nfsend"
ctl="${TRUEPREFIX}/bin/nfsen"
pexp="/usr/bin/perl -w ${daemon}"
# nfsen reconfig is interactive when certain changes are made
rc_reload=NO
rc_start() {
${rcexec} "${ctl} start"
}
rc_stop() {
${rcexec} "${ctl} stop"
}
rc_reload() {
${rcexec} "${ctl} reconfig"
${ctl} stop
}
rc_cmd $1