mirror of
https://git.freebsd.org/ports.git
synced 2025-05-28 08:56:28 -04:00
30 lines
629 B
Bash
30 lines
629 B
Bash
#!/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"
|