Skip to content

Commit

Permalink
Adding unitfile
Browse files Browse the repository at this point in the history
  • Loading branch information
waja committed Jan 23, 2023
1 parent dcdc452 commit 353f35e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 14 additions & 0 deletions debian/service
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 353f35e

Please sign in to comment.