1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 03:05:48 +03:00
aports/community/gvmd/gvmd.initd
Leonardo Arena 1946b01036 community/gvmd: fixes and improvements
- Remove init conf file and set default values in init
- Adjust rundir and init dependencies
- Prevent installations of some files under /usr/etc (e.g. logrotate)
- Remove Debian init config file
- Move some needed directories' creation into init
- Set default socket path and filename
- Create missing gnupg directory in order to prevent startup crash
2020-12-06 14:40:41 +00:00

31 lines
1,007 B
Text

#!/sbin/openrc-run
name="Greenbone Vulnerability Manager"
command=/usr/bin/gvmd
pidfile=/run/gvmd/${RC_SVCNAME}.pid
command_background="true"
: ${GVMD_USER:=gvm}
: ${GVMD_GROUP:=gvm}
: ${GVMD_TIMEOUT:=30}
: ${GVMD_LISTEN_ADDRESS_UNIX:=$(dirname $pidfile)/gvmd.sock}
: ${GVMD_SCANNER_HOST:=/run/ospd/ospd.sock}
: ${GVMD_LISTEN_OWNER:=$GVMD_USER}
: ${GVMD_LISTEN_GROUP=$GVMD_GROUP}
: ${GVMD_LISTEN_MODE:=755}
: ${GVMD_GNUTLS_PRIORITIES:=SECURE256:+SUITEB192:+SECURE192:+SECURE128:+SUITEB128:-MD5:-SHA1:-VERS-TLS1.0:-VERS-TLS1.1:-VERS-SSL3.0}
: ${GVMD_LISTEN_ADDRESS_TCP:=127.0.0.1}
: ${GVMD_PORT:=9390}
command_user="${GVMD_USER}:${GVMD_GROUP}"
retry="${GVMD_TIMEOUT}"
command_args="--foreground ${GVMD_OPTIONS} --listen=${GVMD_LISTEN_ADDRESS_TCP} --port=${GVMD_PORT} --scanner-host=${GVMD_SCANNER_HOST} --gnutls-priorities=${GVMD_GNUTLS_PRIORITIES}"
depend() {
after firewall
need net ospd-openvas
}
start_pre() {
checkpath --directory --mode 775 --owner "$command_user" ${pidfile%/*} /var/log/gvm
}