I can confirm this bug in 9.04. In fact there is a pm-handler in file /usr/lib/pm-utils/sleep.d/95anacron
but unfortunately it does not work correctly. I tried to find out why:
* Anacron is started correcty.
* It detects the TO-DO-JOBS
* It sets alarm(300), which is the time to wait for cron.daily
* Tries rt_sigsuspend()
* Gets ERESTARTNOHAND and terminates.
Maybe a kernel-bug? When I start the pm-utils-handly by myself, everything works.
I can confirm this bug in 9.04. In fact there is a pm-handler in file /usr/lib/ pm-utils/ sleep.d/ 95anacron
but unfortunately it does not work correctly. I tried to find out why:
* Anacron is started correcty.
* It detects the TO-DO-JOBS
* It sets alarm(300), which is the time to wait for cron.daily
* Tries rt_sigsuspend()
* Gets ERESTARTNOHAND and terminates.
Maybe a kernel-bug? When I start the pm-utils-handly by myself, everything works.
strace of failed anacron-start:
time(NULL) = 1253183686 SIG_BLOCK, NULL, [USR1 ALRM CHLD], 8) = 0
alarm(300) = 0
rt_sigprocmask(
rt_sigsuspend([]) = ? ERESTARTNOHAND (To be restarted)
--- SIGTERM (Terminated) @ 0 (0) ---
uname -r
2.6.28-15-generic