bionic still installs 'clean-shutdown' service even though no /sbin/ifdown exists
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Low
|
Unassigned | ||
2.3 |
Won't Fix
|
High
|
Unassigned |
Bug Description
As part of bootstrap (and maybe elsewhere), juju ends up setting this in cloud-init:
'set -xe',
"install -D -m 644 /dev/null '/etc/systemd/
"printf '%s\\n' '\n[Unit]
Which means we create a systemd service that looks like:
+ install -D -m 644 /dev/null /etc/systemd/
+ printf %s\n
[Unit]
Description=Stop all network interfaces on shutdown
DefaultDependen
After=final.target
[Service]
Type=oneshot
ExecStart=
StandardOutput=tty
StandardError=tty
[Install]
WantedBy=
I think this was an attempt to deal with shutdown and restart issues.
However, "/sbin/ifdown" doesn't exist on Bionic, so we certainly shouldn't be installing a service that wants to be running it.
I don't fully understand "oneshot" type services in systemd. Or exactly why this was created in the first place.
It may be that we can just omit it entirely, or it may be that we should be transitioning to some sort of netplan based "shutdown cleanly".
Marking as Won't Fix for 2.3 series since we are not planning to make any further releases in this series at this stage.