aboutsummaryrefslogtreecommitdiffstats
path: root/systemd/dyndhcpd@.service
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2015-12-21 09:24:18 +0100
committerGravatar Christian Hesse <mail@eworm.de>2015-12-21 09:24:18 +0100
commitefc8653ecd567197ef60ebd3386ffd77d5b74a4d (patch)
tree7ea3da120c6af86e9b067b9fc44ef2584aef2e5a /systemd/dyndhcpd@.service
parenta9e268bf2e9b3103ad03f55812ef0584f5bc28fd (diff)
downloaddyndhcpd-efc8653ecd567197ef60ebd3386ffd77d5b74a4d.tar.gz
dyndhcpd-efc8653ecd567197ef60ebd3386ffd77d5b74a4d.tar.zst
make systemd unit require the network device
Diffstat (limited to 'systemd/dyndhcpd@.service')
-rw-r--r--systemd/dyndhcpd@.service14
1 files changed, 14 insertions, 0 deletions
diff --git a/systemd/dyndhcpd@.service b/systemd/dyndhcpd@.service
new file mode 100644
index 0000000..8eb1867
--- /dev/null
+++ b/systemd/dyndhcpd@.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=IPv4 DHCP server for interface %i
+After=network.target
+Requires=sys-subsystem-net-devices-%i.device
+
+[Service]
+ExecStart=/usr/bin/dyndhcpd -i%i
+ProtectSystem=full
+ProtectHome=on
+PrivateDevices=on
+NoNewPrivileges=on
+
+[Install]
+WantedBy=multi-user.target