Set the node state only in response to start jobs
authorFrancisco Redondo Marchena <francisco.marchena@codethink.co.uk>
Mon, 30 Jul 2012 13:21:23 +0000 (14:21 +0100)
committerJannis Pohlmann <jannis.pohlmann@codethink.co.uk>
Mon, 30 Jul 2012 15:21:19 +0000 (16:21 +0100)
commita1ff5cf033824fc8b81430dec5e0a0340600b61b
tree235e99a3cfbbc8abc82d8d98491ba08d74733944
parent176a0bf692d9e5382b3e726ab2b07f73f63187d5
Set the node state only in response to start jobs

The node state only should be set it for systemd start jobs.
To avoid setting the node state for other types of jobs like kill,
stop etc. we query systemd for a list of all jobs and check if
the type of the removed job is "start". Only then do we change
the node state.
boot-manager/systemd-manager-dbus.xml
boot-manager/target-startup-monitor.c