ports/security/py-ospd-openvas/files/ospd_openvas.in
Jose Alonso Cardenas Marquez 77f5aa5d32 security/gvm: update to 21.4.3
The following ports part of security gvm were updated

security/gvmd: Update to 21.4.4
security/gvm-libs: Update to 21.4.3
security/openvas: Update to 21.4.3
security/py-ospd-openvas: Update to 21.4.3
security/py-ospd: Update to 21.4.4
security/greenbone-security-assistant: Update to 21.4.3
security/py-gvm-tools: Update to 21.10.0
security/py-python-gvm: Update to 21.10.0
2021-11-05 11:32:20 -05:00

38 lines
1.1 KiB
Bash

#!/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"