aboutsummaryrefslogtreecommitdiff
path: root/security/gvmd/files/gvmd.in
blob: 6fc265b18a440337f122917b598bf23faf88715a (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
#!/bin/sh

# PROVIDE: gvmd
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
# Add the following to /etc/rc.conf[.local] to enable this service
#
# gvmd_enable  (bool):   Set to NO by default.
#                Set it to YES to enable gvmd.
# gvmd_flags (params):   Set params used to start gvmd.
#

. /etc/rc.subr

name=gvmd
rcvar=${name}_enable

load_rc_config $name

: ${gvmd_enable=NO}
: ${gmvd_flags="--osp-vt-update=/var/run/ospd/ospd-openvas.sock --unix-socket=/var/run/gvmd/gvmd.sock"}

command="%%PREFIX%%/sbin/gvmd"
command_args="${gmvd_flags}"
gvmd_user="gvm"
gvmd_group="gvm"
pidfile=/var/run/gvmd/gvmd.pid

run_rc_command "$1"