blob: caff9f45984311dbb3a8822a4f8cc792ae49d168 (
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
33
34
35
36
37
38
|
#!/bin/sh
# PROVIDE: ospd_openvas
# REQUIRE: NETWORKING
# KEYWORD: shutdown
#
# Configuration settings for ospd_openvas in /etc/rc.conf:
#
# ospd_openvas_enable: run ospd_openvas service (default=NO)
# ospd_openvas_pidfile: path to ospd_openvas pid file
# ospd_openvas_config: path to ospd_openvas configuration file
# ospd_openvas_flags: additional flags for ospd_openvas server
#
. /etc/rc.subr
name=ospd_openvas
rcvar=ospd_openvas_enable
load_rc_config ${name}
export PATH="${PATH}:/usr/local/bin:/usr/local/sbin"
: ${ospd_openvas_enable:=NO}
: ${ospd_openvas_pidfile="/var/run/ospd/ospd-openvas.pid"}
: ${ospd_openvas_config="/usr/local/etc/gvm/ospd.conf"}
: ${ospd_openvas_flags="--lock-file-dir /var/run/ospd --socket-mode 770 --unix-socket /var/run/ospd/ospd-openvas.sock"}
: ${ospd_openvas_user="gvm"}
ospd_openvas_group="gvm"
pidfile=${ospd_openvas_pidfile}
command=/usr/local/bin/ospd-openvas
command_interpreter="%%PYTHON_CMD%%"
command_args="--pid-file ${pidfile} --config ${ospd_openvas_config} --log-file /var/log/gvm/ospd-openvas.log ${ospd_openvas_flags}"
run_rc_command "$1"
|