Comment 29 for bug 1654600

Revision history for this message
SergeiFranco (sergei-franco) wrote :

Hello!

I have changed Before to After and it is working!!!!
Here is what the unit looks like now:

[Unit]
Description=Unattended Upgrades Shutdown
DefaultDependencies=no
After=shutdown.target reboot.target halt.target network.target local-fs.target
Documentation=man:unattended-upgrade(8)

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStop=/usr/share/unattended-upgrades/unattended-upgrade-shutdown
TimeoutStopSec=900

[Install]
WantedBy=shutdown.target

So the proper fix would be changing the Service to ExecStop= and Unit to After=