summaryrefslogtreecommitdiff
blob: f8887d8b343123fbc331b973a1b41e3a340e69f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/sbin/openrc-run
# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

name="remotely control an OpenVAS Scanner"
command=/usr/bin/ospd-openvas
pidfile="/run/${RC_SVCNAME}.pid"
command_args="${OSPD_OPENVAS_OPTIONS} \
	${OSPD_OPENVAS_UNIX_SOCKET} \
	${OSPD_OPENVAS_SOCKET_MODE} \
	--pid-file ${pidfile} \
	--config /etc/openvas/ospd.conf"

depend() {
	after bootmisc
	need localmount redis
}

start_pre() {
        checkpath -d /var/run/ospd
}