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