]> git.ipfire.org Git - thirdparty/systemd.git/commit
core/timer: in containers OnBootSec should count from container startup 1807/head
authorMichal Schmidt <mschmidt@redhat.com>
Sat, 7 Nov 2015 14:09:31 +0000 (15:09 +0100)
committerMichal Schmidt <mschmidt@redhat.com>
Sat, 7 Nov 2015 14:16:00 +0000 (15:16 +0100)
commitc1d9ba9978561b087760bc3b77b1f330bb22e33f
treeb4d40c93c8c14dd1945e8bb7800b52e778da6095
parent2933d599c242ebfc70ddcffe59163916b02270f1
core/timer: in containers OnBootSec should count from container startup

In Fedora dnf-makecache.timer specifies OnBootSec=10min, but it fired
during boot in systemd-nspawn, because the clock ticks since the host's
boot.

Fix it by treating OnBootSec the same as OnStartupSec when running in
a container.
src/core/timer.c