blob: 17b7ff691eab67aaa33de87613c9850d06c74c99 (
plain)
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.sock --unix-socket=/var/run/gvm/gvmd.sock"}
command="%%PREFIX%%/sbin/gvmd"
command_args="${gmvd_flags}"
gvmd_user="gvm"
gvmd_group="gvm"
pidfile=/var/run/gvm/gvmd.pid
run_rc_command "$1"
|