mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 03:05:48 +03:00
23 lines
528 B
Bash
23 lines
528 B
Bash
#!/sbin/openrc-run
|
|
|
|
name="Remotely control an OpenVAS Scanner"
|
|
command="/usr/bin/ospd-openvas"
|
|
pidfile="/run/ospd/${RC_SVCNAME}.pid"
|
|
|
|
: ${OSPD_OPENVAS_UNIX_SOCKET:=$(dirname $pidfile)/ospd-openvas.sock}
|
|
: ${OSPD_OPENVAS_SOCKET_MODE:=0o777}
|
|
|
|
command_args="${OSPD_OPENVAS_OPTIONS} \
|
|
--unix-socket=${OSPD_OPENVAS_UNIX_SOCKET} \
|
|
--socket-mode=${OSPD_OPENVAS_SOCKET_MODE} \
|
|
--pid-file ${pidfile} \
|
|
--config /etc/openvas/ospd.conf"
|
|
|
|
depend() {
|
|
after firewall
|
|
need redis
|
|
}
|
|
|
|
start_pre() {
|
|
checkpath --directory "${pidfile%/*}"
|
|
}
|