mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
27 lines
592 B
Plaintext
27 lines
592 B
Plaintext
#!/sbin/openrc-run
|
|
# Copyright 1999-2014 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Id$
|
|
|
|
name="OpenVAS Scanner"
|
|
command="/usr/bin/openvassd"
|
|
command_args="${SCANNER_EXTRA_ARGS}"
|
|
pidfile="/run/openvassd.pid"
|
|
extra_stopped_commands="create_cache"
|
|
|
|
depend() {
|
|
after bootmisc
|
|
need localmount net
|
|
}
|
|
|
|
start_pre() {
|
|
checkpath --directory --mode 0775 --quiet /var/cache/openvas
|
|
}
|
|
|
|
create_cache() {
|
|
checkpath --directory --mode 0775 --quiet /var/cache/openvas
|
|
ebegin "Generating initial Cache"
|
|
/usr/bin/openvassd --foreground --only-cache
|
|
eend $?
|
|
}
|