From efc8653ecd567197ef60ebd3386ffd77d5b74a4d Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 21 Dec 2015 09:24:18 +0100 Subject: make systemd unit require the network device --- systemd/dyndhcpd@.service | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 systemd/dyndhcpd@.service (limited to 'systemd') 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 -- cgit v1.2.3-70-g09d2