Web lists-archives.com

unattended-upgrades: What's happening when I put my system into sleep?

Hallo all,

this is my first post here.
Last week I installed Debian 8 for the first time (on my laptop, a
Thinkpad T500).

I am currently setting up automatic updates on my system. I noticed a
systemd service (which got automatically enabled) called
'unattended-upgrades.service', which seems to take care of an
unattended upgrade process being finished properly in case of a
shutdown/reboot of the system. This is done via the python script

I'm wondering what's happening if I put my system to sleep (via
suspend-to-RAM or via hibernation) during an unattended upgrade. I
found /etc/pm/sleep.d/10_unattended-upgrades-hibernate -- but as far
as I know (and tested), scripts in /etc/pm/sleep.d/ are no longer
executed with systemd. Now the right place would be
/lib/systemd/systemd-sleep/ (correct me if I'm wrong) -- but
that's empty.

Have I missed something? Or is it simply not implemented at the moment?

Maybe this would be worth fixing before unattended-upgrades are
enabled by default, as discussed in this thread:




Merlin Büge <toni@xxxxxxxxxxxx>