mirror of
https://git.proxmox.com/git/systemd
synced 2026-01-07 18:47:44 +00:00
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.
15 lines
402 B
Desktop File
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
|