Commit 7f7cf669 authored by SZ Lin (林上智)'s avatar SZ Lin (林上智)

Replaced OTP TLS certificate-authorized TCP socket service by

a unix file socket based service.
parent e454c368
......@@ -6,8 +6,5 @@
# ExecStart=
# ExecStart=/usr/sbin/openvassd <your desired options>
# The address the OpenVAS Scanner is listening on.
SCANNER_ADDRESS=127.0.0.1
# The port the OpenVAS Scanner is listening on.
SCANNER_PORT=9391
# The Path of unix socket to listen on.
SCANNER_SOCKET=/tmp/redis.sock
......@@ -31,8 +31,7 @@ DODTIME=25
# daemon options
DAEMONOPTS=""
[ "$SCANNER_ADDRESS" ] && DAEMONOPTS="$DAEMONOPTS --listen=$SCANNER_ADDRESS"
[ "$SCANNER_PORT" ] && DAEMONOPTS="$DAEMONOPTS --port=$SCANNER_PORT"
[ "$SCANNER_SOCKET" ] && DAEMONOPTS="$DAEMONOPTS --unix-socket=$SCANNER_SOCKET"
DAEMON=/usr/sbin/openvassd
PIDFILE=/var/run/openvassd.pid
......
......@@ -10,7 +10,7 @@ WantedBy=multi-user.target
[Service]
Type=forking
PIDFile=/var/run/openvassd.pid
ExecStart=/usr/sbin/openvassd --listen=127.0.0.1 --port=9391
ExecStart=/usr/sbin/openvassd --unix-socket=/tmp/redis.sock
ExecReload=/bin/kill -HUP $MAINPID
# Kill the main process with SIGTERM and after TimeoutStopSec (defaults to
# 1m30) kill remaining processes with SIGKILL
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment