chiark / gitweb /
job: add waiting jobs to run queue in unit_coldplug
authorBrandon Philips <brandon@ifup.co>
Fri, 25 Apr 2014 15:31:59 +0000 (09:31 -0600)
committermsekleta <msekleta@systemd-devel-vm.default>
Sat, 26 Apr 2014 15:59:14 +0000 (17:59 +0200)
commit20a83d7bf4542875f8033b68682a4da4993010e8
treeb28b48357931bb9e0d29cb8e3e48397778e87612
parentae0ceefc2f432bc1068889fcff53d929eca8a3c4
job: add waiting jobs to run queue in unit_coldplug

When we have job installed and added to run queue for service which is
still in dead state and systemd initiates reload then after reload we
never add deserialized job to the run queue again. This is caused by
check in service_coldplug() where we check if deserialized state is
something else than dead state, which is not the case thus we never call
service_set_state() and finally unit_notify() where we would have added
job to the run queue.

Thanks to Michal Sekletar <msekleta@redhat.com> for the original patch.
src/core/job.c