It is not true that sleep.sh skips things like handling STOP_SERVICES (and all the suspend.d and resume.d entries) if gnome-power-manager or klaptopdaemon is running. The theory is that g-p-m or klaptopdaemon will see the ACPI sleep event and should itself invoke sleep.sh with the "force" parameter. Rob: are you sure anacron doesn't get invoked on resume if you add it to STOP_SERVICES in Dapper?
What I think we should do is add an entry /etc/acpi/resume.d/85-anacron.sh which contains
And, for completeness, a corresponding 'stop' script /etc/acpi/suspend.d/15-anacron.sh in case anacron is still running when the user suspends.
Would be great if someone running Dapper on a laptop could try that.
It would be nice to also invoke anacron whenever the AC adaptor is plugged in, as happens under APM via /etc/apm/events/anacron. However acpi-support doesn't currently contain a run-parts directory for power events.
It is not true that sleep.sh skips things like handling STOP_SERVICES (and all the suspend.d and resume.d entries) if gnome-power-manager or klaptopdaemon is running. The theory is that g-p-m or klaptopdaemon will see the ACPI sleep event and should itself invoke sleep.sh with the "force" parameter. Rob: are you sure anacron doesn't get invoked on resume if you add it to STOP_SERVICES in Dapper?
What I think we should do is add an entry /etc/acpi/ resume. d/85-anacron. sh which contains
#!/bin/sh sbin/invoke- rc.d anacron start >/dev/null
/usr/
And, for completeness, a corresponding 'stop' script /etc/acpi/ suspend. d/15-anacron. sh in case anacron is still running when the user suspends.
Would be great if someone running Dapper on a laptop could try that.
It would be nice to also invoke anacron whenever the AC adaptor is plugged in, as happens under APM via /etc/apm/ events/ anacron. However acpi-support doesn't currently contain a run-parts directory for power events.