systemd/debian/extra/units/ifup@.service
Martin Pitt 96348b338f ifup@.service: Fix ifquery call after dropping Type=oneshot
Follow-up fix for commit 7f563b59e: With Type=simple, ExecStartPost runs
immediately after ifup got started, not after it finished. So we can't use
ExecStartPost here, but instead run both "ifup" and "ifquery" in the same
ExecStart command.
2015-07-29 23:53:14 +02:00

15 lines
402 B
Desktop File

[Unit]
Description=ifup for %I
After=local-fs.target network-pre.target networking.service apparmor.service
PartOf=network.target
Before=network.target
BindsTo=sys-subsystem-net-devices-%i.device
ConditionPathIsDirectory=/run/network
DefaultDependencies=no
IgnoreOnIsolate=yes
[Service]
ExecStart=/bin/sh -ec 'ifup --allow=hotplug %I; ifquery --state %I'
ExecStop=/sbin/ifdown %I
RemainAfterExit=true