diff options
Diffstat (limited to 'meta/recipes-connectivity/dhcpcd/files')
-rw-r--r-- | meta/recipes-connectivity/dhcpcd/files/dhcpcd.service | 10 | ||||
-rw-r--r-- | meta/recipes-connectivity/dhcpcd/files/dhcpcd@.service | 15 |
2 files changed, 25 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/dhcpcd/files/dhcpcd.service b/meta/recipes-connectivity/dhcpcd/files/dhcpcd.service new file mode 100644 index 0000000000..86b5a43c37 --- /dev/null +++ b/meta/recipes-connectivity/dhcpcd/files/dhcpcd.service | |||
@@ -0,0 +1,10 @@ | |||
1 | [Unit] | ||
2 | Description=A minimalistic network configuration daemon with DHCPv4, rdisc and DHCPv6 support | ||
3 | Wants=network.target | ||
4 | Before=network.target | ||
5 | |||
6 | [Service] | ||
7 | ExecStart=/usr/sbin/dhcpcd -q --nobackground | ||
8 | |||
9 | [Install] | ||
10 | WantedBy=multi-user.target | ||
diff --git a/meta/recipes-connectivity/dhcpcd/files/dhcpcd@.service b/meta/recipes-connectivity/dhcpcd/files/dhcpcd@.service new file mode 100644 index 0000000000..c81bb05ea5 --- /dev/null +++ b/meta/recipes-connectivity/dhcpcd/files/dhcpcd@.service | |||
@@ -0,0 +1,15 @@ | |||
1 | [Unit] | ||
2 | Description=dhcpcd on %I | ||
3 | Wants=network.target | ||
4 | Before=network.target | ||
5 | BindsTo=sys-subsystem-net-devices-%i.device | ||
6 | After=sys-subsystem-net-devices-%i.device | ||
7 | |||
8 | [Service] | ||
9 | Type=forking | ||
10 | PIDFile=/run/dhcpcd-%I.pid | ||
11 | ExecStart=/usr/sbin/dhcpcd -q %I | ||
12 | ExecStop=/usr/sbin/dhcpcd -x %I | ||
13 | |||
14 | [Install] | ||
15 | WantedBy=multi-user.target | ||