Comment 21 for bug 1492546

Revision history for this message
Alkis Georgopoulos (alkisg) wrote : Re: Systemd runs ifdown on shutdown even when it shouldn't

Well...

This is *not* needed anymore, i.e. the current bug was solved:
# sed '/^ExecStop=/d' -i /lib/systemd/system/ifup@.service

Unfortunately now this is needed, i.e. the same bug appeared elsewhere:
# sed '/^ExecStop=/d' -i /lib/systemd/system/networking.service

The networking.service file now got an unconditional ifdown command:
$ grep ExecStop /lib/systemd/system/networking.service
ExecStop=/sbin/ifdown -a --read-environment

Wouldn't it be easier to create a small.... "careful-ifdown" script, that borrows code from /etc/init/networking.conf, and have all the .service and init files call that one instead?