summaryrefslogtreecommitdiff
path: root/core/dhcpcd/dhcpcd.service
diff options
context:
space:
mode:
Diffstat (limited to 'core/dhcpcd/dhcpcd.service')
-rw-r--r--core/dhcpcd/dhcpcd.service13
1 files changed, 13 insertions, 0 deletions
diff --git a/core/dhcpcd/dhcpcd.service b/core/dhcpcd/dhcpcd.service
new file mode 100644
index 000000000..25a1923ac
--- /dev/null
+++ b/core/dhcpcd/dhcpcd.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=dhcpcd on %I
+Wants=network.target
+Before=network.target
+
+[Service]
+Type=forking
+PIDFile=/run/dhcpcd-%I.pid
+ExecStart=/sbin/dhcpcd -A -q -w %I
+ExecStop=/sbin/dhcpcd -k %I
+
+[Install]
+Alias=multi-user.target.wants/dhcpcd@eth0.service