blob: f3773c741b1bc2f8be3ba3de3eee0e6655f43ee6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#!/bin/sh
# Start or stop openvasd
# $FreeBSD$
# PROVIDE: openvasd
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: shutdown
#
# Define these openvasd_* variables in one of these files:
# /etc/rc.conf
# /etc/rc.conf.local
# /etc/rc.conf.d/openvasd
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
#
[ -z "$openvasd_enable" ] && openvasd_enable="NO" # Disable openvasd
#openvasd_program="%%PREFIX%%/sbin/openvasd" # Location of openvasd
openvasd_flags="-D -q" # Flags to openvasd program
. %%RC_SUBR%%
name="openvasd"
rcvar=`set_rcvar`
command="%%PREFIX%%/sbin/openvasd"
pidfile="/var/run/openvasd.pid"
required_files="%%PREFIX%%/etc/openvas/openvasd.conf"
load_rc_config $name
run_rc_command "$1"
|