aboutsummaryrefslogtreecommitdiffstats
path: root/ansible/roles/udhcpd/files
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2018-06-05 12:01:11 +0200
committerlynxis lazus <lynxis@fe80.eu>2018-06-07 12:47:44 +0000
commit088d2d6bb705de3a0e36bfd44643f60900de8900 (patch)
treeca1d448f336c0d56e11b1e43054c2f4ce0901fab /ansible/roles/udhcpd/files
parent4be1378a897b00db18ea8e99310db7f4c4e01b78 (diff)
ansible: udhcpd: add systemd service file
The udhcpd /etc/init.d/ script is racy and fails often. Change-Id: Ie373119a902a001f093599e289cadb8b2d290668 Fixes: OS#3311
Diffstat (limited to 'ansible/roles/udhcpd/files')
-rw-r--r--ansible/roles/udhcpd/files/udhcpd.service13
1 files changed, 13 insertions, 0 deletions
diff --git a/ansible/roles/udhcpd/files/udhcpd.service b/ansible/roles/udhcpd/files/udhcpd.service
new file mode 100644
index 0000000..03c34c1
--- /dev/null
+++ b/ansible/roles/udhcpd/files/udhcpd.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=udhcpcd DHCP server
+After=network-online.target
+Wants=network-online.target
+
+[Service]
+ExecStart=/usr/sbin/udhcpd -f
+RestartSec=5
+Restart=always
+
+[Install]
+WantedBy=multi-user.target
+