ifup@.service: Set IgnoreOnIsolate and PartOf=network.target

With that, "systemctl default" does not shut down network interfaces. Also add
PartOf=network.target, so that stopping network.target also stops network
interfaces.

LP: #1449380
This commit is contained in:
Martin Pitt 2015-04-28 11:56:24 +02:00
parent 33a013205f
commit 1afebb7d7e
2 changed files with 5 additions and 0 deletions

3
debian/changelog vendored
View File

@ -21,6 +21,9 @@ systemd (219-8) UNRELEASED; urgency=medium
* hwdb: Fix wireless switch on Dell Latitude (LP: #1441849)
* Fix assertion crash when reading a service file with missing ' and
trailing space. (LP: #1447243)
* ifup@.service: Set IgnoreOnIsolate, so that "systemctl default" does not
shut down network interfaces. (LP: #1449380). Add PartOf=network.target,
so that stopping network.target also stops network interfaces.
-- Michael Biebl <biebl@debian.org> Mon, 13 Apr 2015 20:46:34 +0200

View File

@ -1,10 +1,12 @@
[Unit]
Description=ifup for %I
After=local-fs.target network-pre.target networking.service
PartOf=network.target
Before=network.target
BindsTo=sys-subsystem-net-devices-%i.device
ConditionPathIsDirectory=/run/network
DefaultDependencies=no
IgnoreOnIsolate=yes
[Service]
Type=oneshot