Comment 18 for bug 2015126

Revision history for this message
Nick Rosbrook (enr0n) wrote (last edit ):

Okay, so internally systemd is using CLOCK_MONOTONIC for the event source that counts up to RuntimeMaxSec, and CLOCK_MONOTONIC does not count the time when the system is suspended. Your use case wants CLOCK_BOOTTIME, which does count time when the system is suspended. I will work on a fix for this.

[1] https://man7.org/linux/man-pages/man3/clock_gettime.3.html