Adding unitfile
This commit is contained in:
parent
dcdc452cb0
commit
353f35ecb6
1
debian/rules
vendored
1
debian/rules
vendored
|
@ -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
14
debian/service
vendored
Normal 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
|
Loading…
Reference in a new issue