Switch from Systemd to Enit

This commit is contained in:
2025-03-12 12:49:39 +02:00
parent 9d2d2413a6
commit a7607ac5a6
5 changed files with 12 additions and 30 deletions
-10
View File
@@ -1,10 +0,0 @@
[Unit]
Description=DHCP/ IPv4LL/ IPv6RA/ DHCPv6 client on all interfaces
Wants=network.target
Before=network.target
[Service]
ExecStart=/sbin/dhcpcd -q -B
[Install]
WantedBy=multi-user.target
+7
View File
@@ -0,0 +1,7 @@
name: dhcpcd
description: run dhcpcd on all clients
dependencies: ["udevd"]
type: background
start_cmd: dhcpcd -q -B
exit_method: kill
restart: true
-15
View File
@@ -1,15 +0,0 @@
[Unit]
Description=dhcpcd on %I
Wants=network.target
Before=network.target
BindsTo=sys-subsystem-net-devices-%i.device
After=sys-subsystem-net-devices-%i.device
[Service]
Type=forking
PIDFile=/run/dhcpcd/%I.pid
ExecStart=/sbin/dhcpcd -q -w %I
ExecStop=/sbin/dhcpcd -x %I
[Install]
WantedBy=multi-user.target