touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #100682
[Bug 1492546] Re: Systemd runs ifdown on shutdown even when it shouldn't
This also affects LTSP, e.g. Wily clients can't shutdown because
/sbin/poweroff is no longer accessible once ifup@.service unmounts
/dev/nbd0.
If systemd is fixed in Ubuntu before 15.10 is released, problem solved,
otherwise we'll need to commit the following in upstream LTSP.
Script /usr/share/ltsp/init-ltsp.d/50-systemd-ifup:
if [ -f /lib/systemd/system/ifup@.service ]; then
mkdir -p /etc/systemd/system/ifup@$DEVICE.service.d
cat > /etc/systemd/system/ifup@$DEVICE.service.d/ltsp.conf <<EOF
[Service]
ExecStop=
EOF
fi
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1492546
Title:
Systemd runs ifdown on shutdown even when it shouldn't
Status in ltsp package in Ubuntu:
New
Status in systemd package in Ubuntu:
New
Bug description:
The unit /lib/systemd/system/ifup@.service is Debian and Ubuntu specific, it's not part of upstream systemd.
On shutdown, it unconditionally ifdowns all interfaces:
ExecStop=/sbin/ifdown %I
This is a regression from previous init systems (sysvinit and upstart)
which cared so that when a network file system was in use, they didn't
ifdown the interfaces.
Specifically, both /etc/init.d/networking and /etc/init/networking contain these functions:
check_network_file_systems()
check_network_swaps()
which output the message "not deconfiguring network interfaces: network file systems still mounted" and exit.
So, please call the same functions in the ExecStop= part of
ifup@.service.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ltsp/+bug/1492546/+subscriptions
References