Remove the list of units and create D-Bus proxy only for wanted targets
authorFrancisco Redondo Marchena <francisco.marchena@codethink.co.uk>
Thu, 9 Aug 2012 14:40:47 +0000 (15:40 +0100)
committerJonathan Maw <jonathan.maw@codethink.co.uk>
Thu, 9 Aug 2012 16:13:47 +0000 (17:13 +0100)
commitb1483f842beded2611d6fbff0ff040caa717f28c
tree293923e205f3f5364b2ffdf923199a93f394033d
parent9ce8952b117226ddda6b60e676dc9c6c7f9072b1
Remove the list of units and create D-Bus proxy only for wanted targets

Remove the list of units which is not longer used.
When the TargetStarterMonitor receives a "job-removed" signal it
creates a D-Bus proxy to monitor the unit and check if the state
changes to "active". If it does the TargetStartupMonitor sets the node
state.

The TargetStarterMonitor is only interested in monitoring
"focussed.target", "unfocussed.target" and "lazy.target" units. To
avoid creating the D-Bus proxy for unneeded units, it should check in
target_startup_monitor_job_removed if the unit is a unit which has to be
monitored.
NEWS
node-startup-controller/target-startup-monitor.c