mirror of
https://git.proxmox.com/git/systemd
synced 2026-01-14 11:42:36 +00:00
- Use DefaultDependencies=no in ifup@.service so the service can be started as early as possible. - Create the ifupdown runtime directory in ifup@.service as we can no longer rely on the networking service to do that for us. - Don't stop ifup@.service on shutdown but let the networking service take care of stopping all hotplugged interfaces. - Only start ifup@.service for interfaces configured as allow-hotplug.
14 lines
330 B
Desktop File
14 lines
330 B
Desktop File
[Unit]
|
|
Description=ifup for %I
|
|
After=local-fs.target
|
|
Before=network.target
|
|
BindsTo=sys-subsystem-net-devices-%i.device
|
|
DefaultDependencies=no
|
|
|
|
[Service]
|
|
ExecStartPre=-/bin/mkdir -p /run/network
|
|
ExecStartPre=-/bin/chown root:netdev /run/network
|
|
ExecStart=/sbin/ifup --allow=hotplug %I
|
|
ExecStop=/sbin/ifdown %I
|
|
RemainAfterExit=true
|