Adding unitfile

This commit is contained in:
Jan Wagner 2023-01-23 11:06:31 +00:00
parent dcdc452cb0
commit 353f35ecb6
2 changed files with 15 additions and 0 deletions

1
debian/rules vendored
View file

@ -60,6 +60,7 @@ binary-arch: build install
dh_installman debian/dns-flood-detector.8
dh_installexamples
dh_installinit -- defaults 40
dh_installsystemd --no-enable
dh_lintian
dh_link
dh_strip

14
debian/service vendored Normal file
View file

@ -0,0 +1,14 @@
[Unit]
Description=dns-flood-detector daemon
[Service]
Environment=PIDFILE=/var/run/dns-flood-detector.pid
EnvironmentFile=-/etc/default/dns-flood-detector
ExecStart=/usr/sbin/dns-flood-detector $DAEMON_OPTS
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Restart=on-failure
Type=notify
[Install]
WantedBy=multi-user.target