Commit 5bc15896 authored by Raphaël Hertzog's avatar Raphaël Hertzog

Add a proper systemd service file.

parent e4739b4e
openvas-scanner (5.0.1-0kali2) kali-dev; urgency=medium
* Add a proper systemd service file.
-- Raphaël Hertzog <hertzog@debian.org> Tue, 28 Jul 2015 15:49:30 +0200
openvas-scanner (5.0.1-0kali1) kali; urgency=medium openvas-scanner (5.0.1-0kali1) kali; urgency=medium
* Import new upstream release * Import new upstream release
......
...@@ -2,7 +2,7 @@ Source: openvas-scanner ...@@ -2,7 +2,7 @@ Source: openvas-scanner
Section: admin Section: admin
Priority: optional Priority: optional
Maintainer: Stephan Kleine <bitshuffler@opensuse.org> Maintainer: Stephan Kleine <bitshuffler@opensuse.org>
Build-Depends: debhelper (>= 9), devscripts, cmake, libopenvas-dev (>= 8), libwrap0-dev, pkg-config, po-debconf, doxygen Build-Depends: debhelper (>= 9), dh-systemd, cmake, libopenvas-dev (>= 8), libwrap0-dev, pkg-config, po-debconf, doxygen
Homepage: http://www.openvas.org/ Homepage: http://www.openvas.org/
Standards-Version: 3.9.5 Standards-Version: 3.9.5
......
# # NOTE: This file is not used if you are using systemd. The options are
# The address the OpenVAS Scanner is listening on. # hardcoded in the openvas-scanner.service file. If you want to change
# # them you should override the service file by creating a file
# /etc/systemd/system/openvas-scanner.service.d/local.conf like this:
# [Service]
# ExecStart=
# ExecStart=/usr/sbin/openvassd <your desired options>
# The address the OpenVAS Scanner is listening on.
SCANNER_ADDRESS=127.0.0.1 SCANNER_ADDRESS=127.0.0.1
#
# The port the OpenVAS Scanner is listening on. # The port the OpenVAS Scanner is listening on.
#
SCANNER_PORT=9391 SCANNER_PORT=9391
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
# time to wait for daemons death, in seconds # time to wait for daemons death, in seconds
# don't set it too low or you might not let openvassd die gracefully # don't set it too low or you might not let openvassd die gracefully
DODTIME=5 DODTIME=25
[ -r /etc/default/openvas-scanner ] && . /etc/default/openvas-scanner [ -r /etc/default/openvas-scanner ] && . /etc/default/openvas-scanner
......
[Unit]
Description=Open Vulnerability Assessment System Scanner Daemon
Documentation=man:openvassd(8) http://www.openvas.org/
After=redis-server.service
Requires=redis-server.service
[Install]
WantedBy=multi-user.target
[Service]
Type=forking
PIDFile=/var/run/openvassd.pid
ExecStart=/usr/sbin/openvassd --listen=127.0.0.1 --port=9391
ExecReload=/bin/kill -HUP $MAINPID
# Kill the main process with SIGTERM and after TimeoutStopSec (defaults to
# 1m30) kill remaining processes with SIGKILL
KillMode=mixed
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