systemd/debian/ifup@.service
Michael Biebl 189af6171b Various ifupdown integration fixes
- 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.
2014-06-24 14:46:35 +02:00

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