ports/security/py-ospd-openvas/files/ospd_openvas.in
Jose Alonso Cardenas Marquez 88b668ecb9
security/gvm: update to 23.2.0
- databases/pg-gvm: update to 22.6.4
- security/gsa: update to 23.0.0
- security/gsad: update to 22.9.0
- security/gvm-libs: update to 22.8.0
- security/gvmd: update to 23.2.0
- security/openvas: update to 22.7.9
- security/py-gvm-tools: update to 24.1.0
- security/py-notus-scanner: update to 22.6.2
- security/py-ospd-openvas: update to 22.6.2
- security/py-python-gvm: update to 24.1.0
- security/py-greenbone-feed-sync: update to 23.10.0
2024-01-26 19:47:49 -05:00

38 lines
1.1 KiB
Bash

#!/bin/sh
# PROVIDE: ospd_openvas
# REQUIRE: NETWORKING redis
# 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-openvas.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"