[Pkg-systemd-maintainers] Bug#741597: systemd: anacron stopped immediately if acpi-support is installed

Michael Biebl biebl at debian.org
Sun Mar 16 20:56:02 GMT 2014


Am 16.03.2014 21:37, schrieb Andreas B. Mundt:
> Hi,
> 
> On Fri, Mar 14, 2014 at 01:30:56PM +0100, Michael Biebl wrote:
>> Am 14.03.2014 12:08, schrieb Andreas B. Mundt:
> [...]
>>
>> Do you have pm-utils installed? In that case, have a look at
>> /etc/acpi/power.sh, this calls pm-powersave which in turn can cause
>> anacron to be stopped.
> 
> Yes, it's installed.
> 
>>
>> You could test commenting out the line "pm-powersave $*" to see if that
>> makes a difference.
>>
> 
> Indeed, it makes a difference.  With "pm-powersave $*" commented out I
> get right after boot:
> 
> $ systemctl status anacron.service
> anacron.service - Run anacron jobs
>    Loaded: loaded (/lib/systemd/system/anacron.service; enabled)
>    Active: active (running) since Sun 2014-03-16 21:13:15 CET; 27s ago
>  Main PID: 1413 (anacron)
>    CGroup: name=systemd:/system/anacron.service
>            └─1413 /usr/sbin/anacron -dsq
> 
> Mar 16 21:13:15 flashgordon systemd[1]: Starting Run anacron jobs...
> Mar 16 21:13:15 flashgordon systemd[1413]: Executing: /usr/sbin/anacron -dsq
> Mar 16 21:13:15 flashgordon systemd[1]: Started Run anacron jobs.
> Mar 16 21:13:15 flashgordon anacron[1413]: Anacron 2.3 started on 2014-03-16
> Mar 16 21:13:15 flashgordon anacron[1413]: Will run job `cron.daily' in 5 min.
> Mar 16 21:13:15 flashgordon anacron[1413]: Will run job `cron.monthly' in 15 min.
> Mar 16 21:13:15 flashgordon anacron[1413]: Jobs will be executed sequentially
> 
> After 5 min the anacron jobs are run as expected and finish
> successfully.  For completeness, I attach 'journalctl -b | grep anacron'.
> 
> Best regards,
> 
>      Andi
> 

So, systemd works as expected afaics. That the anacron service is
stopped by pm-powersave via acpi-support is not something which can be
dealt with in systemd.
From what I understand you'll also get this behaviour of anacron being
stopped by pm-powersave/acpi-support under sysvinit, you just never
noticed it due to sysvinit not having such great debugging facilities
like the journal :-)

Questions remains, what to do about this? I'd say it's a bug in
acpi-support if it calls pm-powersave true, even though the system is
not on battery.

I'm inclined to close or re-assing this bug.

Andreas, do you want to take this to the acpi-support maintainers?

Michael


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 901 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20140316/80d27042/attachment-0002.sig>


More information about the Pkg-systemd-maintainers mailing list