[systemd-bugs] [Bug 65818] New: systemd gets stuck in loop with ConditionACPower in timer activated service

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Jun 16 03:27:44 PDT 2013


https://bugs.freedesktop.org/show_bug.cgi?id=65818

          Priority: medium
            Bug ID: 65818
          Assignee: systemd-bugs at lists.freedesktop.org
           Summary: systemd gets stuck in loop with ConditionACPower in
                    timer activated service
        QA Contact: systemd-bugs at lists.freedesktop.org
          Severity: major
    Classification: Unclassified
                OS: Linux (All)
          Reporter: mus.svz at gmail.com
          Hardware: Other
            Status: NEW
           Version: unspecified
         Component: general
           Product: systemd

Created attachment 80900
  --> https://bugs.freedesktop.org/attachment.cgi?id=80900&action=edit
backup service

I use the attached service and timer units for backup purposes. The service
file contains ConditionACPower=yes because I don't want the backup to run when
the power isn't plugged in.

This works as expected as long as the power is plugged in. If however the
service is triggered by the timer while the power is unplugged, systemd gets
stuck in a loop. CPU usage by systemd goes up to about 75%, systemd-journal up
to 35%, and the journal is flooded with the following message:

Jun 16 12:17:42 mus-laptop systemd[1]: Started Backup laptop

Every 10 seconds, the following is logged, followed by another few hundred
"Started backup-laptop" messages:

Jun 16 12:17:52 mus-laptop systemd-journal[178]: Suppressed 16332 messages from
/system
Jun 16 12:17:52 mus-laptop systemd[1]: Started Backup laptop.

Note that this doesn't happen when I trigger the service manually, only if it
is triggered by the timer. The loop stops as soon as I stop the timer.

"systemctl status backup-laptop" shows the following while it is stuck in the
loop:

backup-laptop.service - Backup laptop
   Loaded: loaded (/etc/systemd/system/backup-laptop.service; static)
   Active: inactive (dead) since Sun 2013-06-16 12:02:23 CEST; 21min ago
          start condition failed at Sun 2013-06-16 12:24:03 CEST; 2ms ago
 Main PID: 17667 (code=exited, status=0/SUCCESS)
   CGroup: name=systemd:/system/backup-laptop.service


I'm running Arch Linux x64 with systemd 204.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20130616/36601329/attachment.html>


More information about the systemd-bugs mailing list