Import of pkgsrc-2016Q3

This commit is contained in:
2016-11-18 22:39:22 +01:00
committed by sambuc
parent 9d819b6d54
commit 1242aa1e36
35952 changed files with 949747 additions and 377081 deletions
+26
View File
@@ -0,0 +1,26 @@
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: ntopng.sh,v 1.1 2016/04/08 16:59:07 adam Exp $
#
# PROVIDE: ntopng
# REQUIRE: DAEMON network
# KEYWORD: shutdown
if [ -f /etc/rc.subr ]; then
. /etc/rc.subr
fi
name="ntopng"
rcvar=$name
# XXX must be in tmp, because ntopng runs as nobody
pidfile="@VARBASE@/tmp/$name.pid"
command="@PREFIX@/bin/$name"
command_args="-e -G $pidfile"
if [ -f /etc/rc.subr ]; then
load_rc_config $name
run_rc_command "$1"
else
echo -n "${name}"
@SU@ -c "${command}"
fi