summaryrefslogtreecommitdiffstats
path: root/debian/kea-ctrl-agent.service
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-21 14:53:52 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-21 14:53:52 +0000
commit3ed143456d4270196c89e8e7e57badd439b44df4 (patch)
treefb241ff60337a450c34bfa02210a10fe0ddc9073 /debian/kea-ctrl-agent.service
parentAdding upstream version 2.5.7. (diff)
downloadisc-kea-debian.tar.xz
isc-kea-debian.zip
Adding debian version 2.4.1-3.debian/2.4.1-3debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--debian/kea-ctrl-agent.service22
1 files changed, 22 insertions, 0 deletions
diff --git a/debian/kea-ctrl-agent.service b/debian/kea-ctrl-agent.service
new file mode 100644
index 0000000..52e11ad
--- /dev/null
+++ b/debian/kea-ctrl-agent.service
@@ -0,0 +1,22 @@
+[Unit]
+Description=Kea Control Agent
+Documentation=man:kea-ctrl-agent(8)
+After=network-online.target time-sync.target
+ConditionFileNotEmpty=/etc/kea/kea-api-password
+
+[Service]
+User=_kea
+Environment="KEA_LOCKFILE_DIR=/run/lock/kea"
+ConfigurationDirectory=kea
+RuntimeDirectory=kea lock/kea
+RuntimeDirectoryPreserve=yes
+LogsDirectory=kea
+LogsDirectoryMode=0750
+StateDirectory=kea
+ExecStart=/usr/sbin/kea-ctrl-agent -c /etc/kea/kea-ctrl-agent.conf
+ExecReload=/bin/kill -HUP $MAINPID
+KillMode=process
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target