Open mirrorway opened 6 years ago
R4.0
qubes suspend handling
40my-sleep-hook runs before 52qubes-pause-vms
40my-sleep-hook does not run.
It turns out /usr/lib/systemd/system/qubes-suspend.service directly runs 52qubes-pause-vms, and nothing else in that folder.
So sleep hooks have to be set up via systemd service file. Which is fine, but the naming and location of sleep.d/52qubes-pause-vms suggests otherwise.
Yes, I think pm-utils is nowadays completely dead and replaced by systemd handling (at least on Fedora), so we can abandon this legacy location.
Qubes OS version:
R4.0
Affected component(s):
qubes suspend handling
Steps to reproduce the behavior:
Expected behavior:
40my-sleep-hook runs before 52qubes-pause-vms
Actual behavior:
40my-sleep-hook does not run.
General notes:
It turns out /usr/lib/systemd/system/qubes-suspend.service directly runs 52qubes-pause-vms, and nothing else in that folder.
So sleep hooks have to be set up via systemd service file. Which is fine, but the naming and location of sleep.d/52qubes-pause-vms suggests otherwise.
Related issues: