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

Andreas B. Mundt andi at debian.org
Sun Mar 16 20:37:00 GMT 2014


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
-------------- next part --------------
Mar 16 21:13:11 flashgordon systemd[1]: Installed new job anacron.service/start as 84
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
Mar 16 21:13:42 flashgordon systemd[1]: Got D-Bus request: org.freedesktop.DBus.Properties.GetAll() on /org/freedesktop/systemd1/unit/anacron_2eservice
Mar 16 21:16:48 flashgordon systemd[1]: Got D-Bus request: org.freedesktop.DBus.Properties.GetAll() on /org/freedesktop/systemd1/unit/anacron_2eservice
Mar 16 21:18:15 flashgordon anacron[1413]: Job `cron.daily' started
Mar 16 21:18:15 flashgordon anacron[2665]: Updated timestamp for job `cron.daily' to 2014-03-16
Mar 16 21:18:15 flashgordon systemd[1]: Received SIGCHLD from PID 2665 (anacron).
Mar 16 21:18:15 flashgordon systemd[1]: Got SIGCHLD for process 2665 (anacron)
Mar 16 21:18:24 flashgordon systemd[1]: Got D-Bus request: org.freedesktop.DBus.Properties.GetAll() on /org/freedesktop/systemd1/unit/anacron_2eservice
Mar 16 21:18:36 flashgordon systemd[1]: Got D-Bus request: org.freedesktop.DBus.Properties.GetAll() on /org/freedesktop/systemd1/unit/anacron_2eservice
Mar 16 21:18:45 flashgordon systemd[1]: Got D-Bus request: org.freedesktop.DBus.Properties.GetAll() on /org/freedesktop/systemd1/unit/anacron_2eservice
Mar 16 21:19:06 flashgordon systemd[1]: Got D-Bus request: org.freedesktop.DBus.Properties.GetAll() on /org/freedesktop/systemd1/unit/anacron_2eservice
Mar 16 21:19:26 flashgordon systemd[1]: Got D-Bus request: org.freedesktop.DBus.Properties.GetAll() on /org/freedesktop/systemd1/unit/anacron_2eservice
Mar 16 21:20:44 flashgordon systemd[1]: Got D-Bus request: org.freedesktop.DBus.Properties.GetAll() on /org/freedesktop/systemd1/unit/anacron_2eservice
Mar 16 21:20:57 flashgordon systemd[1]: Got D-Bus request: org.freedesktop.DBus.Properties.GetAll() on /org/freedesktop/systemd1/unit/anacron_2eservice
Mar 16 21:22:14 flashgordon systemd[1]: Got D-Bus request: org.freedesktop.DBus.Properties.GetAll() on /org/freedesktop/systemd1/unit/anacron_2eservice
Mar 16 21:23:01 flashgordon systemd[1]: Got D-Bus request: org.freedesktop.DBus.Properties.GetAll() on /org/freedesktop/systemd1/unit/anacron_2eservice
Mar 16 21:24:51 flashgordon systemd[1]: Got D-Bus request: org.freedesktop.DBus.Properties.GetAll() on /org/freedesktop/systemd1/unit/anacron_2eservice
Mar 16 21:24:56 flashgordon systemd[1]: Got D-Bus request: org.freedesktop.DBus.Properties.GetAll() on /org/freedesktop/systemd1/unit/anacron_2eservice
Mar 16 21:24:58 flashgordon anacron[1413]: Job `cron.daily' terminated
Mar 16 21:24:59 flashgordon systemd[1]: Got D-Bus request: org.freedesktop.DBus.Properties.GetAll() on /org/freedesktop/systemd1/unit/anacron_2eservice
Mar 16 21:25:01 flashgordon systemd[1]: Got D-Bus request: org.freedesktop.DBus.Properties.GetAll() on /org/freedesktop/systemd1/unit/anacron_2eservice
Mar 16 21:26:37 flashgordon systemd[1]: Got D-Bus request: org.freedesktop.DBus.Properties.GetAll() on /org/freedesktop/systemd1/unit/anacron_2eservice
Mar 16 21:28:15 flashgordon anacron[1413]: Job `cron.monthly' started
Mar 16 21:28:15 flashgordon anacron[3043]: Updated timestamp for job `cron.monthly' to 2014-03-16
Mar 16 21:28:15 flashgordon anacron[1413]: Job `cron.monthly' terminated
Mar 16 21:28:15 flashgordon anacron[1413]: Normal exit (2 jobs run)
Mar 16 21:28:15 flashgordon systemd[1]: Received SIGCHLD from PID 3043 (anacron).
Mar 16 21:28:15 flashgordon systemd[1]: Got SIGCHLD for process 1413 (anacron)
Mar 16 21:28:15 flashgordon systemd[1]: Child 1413 belongs to anacron.service
Mar 16 21:28:15 flashgordon systemd[1]: anacron.service: main process exited, code=exited, status=0/SUCCESS
Mar 16 21:28:15 flashgordon systemd[1]: anacron.service changed running -> dead
Mar 16 21:28:15 flashgordon systemd[1]: Got SIGCHLD for process 3043 (anacron)
Mar 16 21:28:15 flashgordon systemd[1]: anacron.service: cgroup is empty
Mar 16 21:28:20 flashgordon systemd[1]: Got D-Bus request: org.freedesktop.DBus.Properties.GetAll() on /org/freedesktop/systemd1/unit/anacron_2eservice
Mar 16 21:31:17 flashgordon systemd[1]: Got D-Bus request: org.freedesktop.DBus.Properties.GetAll() on /org/freedesktop/systemd1/unit/anacron_2eservice


More information about the Pkg-systemd-maintainers mailing list