job: Ensure JobRunningTimeoutSec= survives serialization (#6128)
authorMichal Koutný <Werkov@users.noreply.github.com>
Sun, 18 Jun 2017 15:51:17 +0000 (17:51 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 18 Jun 2017 15:51:17 +0000 (11:51 -0400)
commit171f12ced8465ff8483b0bb5e6f26ec7c4bb024c
treec9b7cea23cf2445aa8fbba3d8aeae5ab96574de0
parentf7b1c8d1fca94474c74b2281670c185d9e48a8bb
job: Ensure JobRunningTimeoutSec= survives serialization (#6128)

This is a fixup of commit a2df3ea4ae058693bc7bf203d144e8af3c9493d2.
When there is a running job with JobRunningTimeoutSec= and systemd serializes
its state (e.g. during daemon-reload), the timer event source won't be properly
restored in job_coldplug().
Thus save and serialize begin_running_usec too and reinitialize the timer based
on that value.
src/core/job.c
src/core/job.h