diff options
Diffstat (limited to 'meta/recipes-connectivity/dhcpcd/files/dhcpcd@.service')
-rw-r--r-- | meta/recipes-connectivity/dhcpcd/files/dhcpcd@.service | 15 |
1 files changed, 15 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..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 | ||