[systemd-devel] Timers and Service Conditions

Merten Sach merten at tabinin.eu
Thu Apr 2 03:01:46 PDT 2015


Hi,

I have a problem with a timer that trigges a service that has a condition set.
The timer defines the following properties:

  [Timer]
  OnBootSec=1h
  OnUnitInactiveSec=1h
  Unit=autobackup@%i.service

The service unit set the following condition:

  ConditionACPower=true

When I'm now on AC power the service is never active and, therefor, the inactive
timestamp is never set. This causes the timer to be triggered repeatedly which
causes a very high system load.

I want to keep the timer relative to bootup. So, can I avoid OnCalendar= ?

Thanks
Merten


More information about the systemd-devel mailing list