pkgsrc/security/openvas-server/files/openvasd.sh
adrianp be52ce7665 OpenVAS stands for Open Vulnerability Assessment System and is a
network security scanner with associated tools like a graphical
user front-end. The core component is a server with a set of network
vulnerability tests (NVTs) to detect security problems in remote
systems and applications.
2009-01-04 01:08:52 +00:00

27 lines
453 B
Bash

#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: openvasd.sh,v 1.1.1.1 2009/01/04 01:11:55 adrianp Exp $
#
# PROVIDE: openvasd
# REQUIRE: network
#
if [ -f /etc/rc.subr ]
then
. /etc/rc.subr
fi
name="openvasd"
rcvar=${name}
command="@PREFIX@/sbin/${name}"
command_args="-D -q"
pidfile="@VARBASE@/run/${name}.pid"
if [ -f /etc/rc.subr ]
then
load_rc_config $name
run_rc_command "$1"
else
echo -n ' ${name}'
exec ${command} ${openvasd_flags} ${command_args}
fi