systemd/debian/ifup@.service
Didier Roche e8bc109667 debian/ifup@.service: Only run if /run/network exists
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
2014-11-14 12:33:52 +01:00

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