mirror of
https://git.proxmox.com/git/systemd
synced 2026-01-13 12:46:14 +00:00
Add a ConditionPath on /run/network in case autogenerated networking.service didn't need to start and so, didn't create this directory. Starting an ifup service without this directory was resulting in the unit failing. Closes: #769528
13 lines
296 B
Desktop File
13 lines
296 B
Desktop File
[Unit]
|
|
Description=ifup for %I
|
|
After=local-fs.target networking.service
|
|
Before=network.target
|
|
BindsTo=sys-subsystem-net-devices-%i.device
|
|
ConditionPathIsDirectory=/run/network
|
|
DefaultDependencies=no
|
|
|
|
[Service]
|
|
ExecStart=/sbin/ifup --allow=hotplug %I
|
|
ExecStop=/sbin/ifdown %I
|
|
RemainAfterExit=true
|