From 9684f1592566569fe5c5fe9fecf51e443df0c0ff Mon Sep 17 00:00:00 2001 From: AliveDevil Date: Sat, 13 Jan 2024 17:38:24 +0100 Subject: [PATCH] Add systemd files --- ext/systemd/pdns-dhcp.service | 11 +++++++++++ ext/systemd/pdns-dhcp.socket | 12 ++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 ext/systemd/pdns-dhcp.service create mode 100644 ext/systemd/pdns-dhcp.socket diff --git a/ext/systemd/pdns-dhcp.service b/ext/systemd/pdns-dhcp.service new file mode 100644 index 0000000..3d329d0 --- /dev/null +++ b/ext/systemd/pdns-dhcp.service @@ -0,0 +1,11 @@ +[Unit] +Description=PowerDNS/DHCP Companion Remote +Before=pdns.service + +[Service] +Type=notify +ExecStart=/opt/pdns-dhcp/pdns-dhcp +WorkingDirectory=/etc/pdns-dhcp + +[Install] +WantedBy=multi-user.target diff --git a/ext/systemd/pdns-dhcp.socket b/ext/systemd/pdns-dhcp.socket new file mode 100644 index 0000000..b514f4b --- /dev/null +++ b/ext/systemd/pdns-dhcp.socket @@ -0,0 +1,12 @@ +# WARNING +# This currently not supported. + +[Unit] +Description=pdns-dhcp PowerDNS Remote Socket + +[Socket] +ListenStream=/run/pdns-dhcp/pdns-dhcp.sock +Accept=no + +[Install] +WantedBy=sockets.target