timer: reenable TIMER_ACTIVE timers when restarted
authorMichael Chapman <mike@very.puzzling.org>
Thu, 6 Nov 2014 08:47:02 +0000 (19:47 +1100)
committerLennart Poettering <lennart@poettering.net>
Fri, 7 Nov 2014 00:19:56 +0000 (01:19 +0100)
commit779042e772d2459f7649b34a164902dc456f1bab
tree2517a9ea6c2416ebd294049b9b9b16c78536c16d
parentf32d2db140150b9d38684a699c9875b6e24ca27c
timer: reenable TIMER_ACTIVE timers when restarted

A timer configured with OnActiveSec will start its associated unit again
if the timer is stopped, then started. However, if the timer unit is
restarted -- with "systemctl restart", say -- this does not occur.

This commit ensures that TIMER_ACTIVE timers are re-enabled whenever the
timer is started, even if that's within a restart job.
src/core/timer.c