power_state: Catch DBusServiceError and wait

Update to catch the DBusServiceError exception for the service owning
the `org.openbmc.control.Power` interface with the `pgood` property not
being on dbus yet and wait for a propertiesChanged signal for when the
service starts.

This is necessary for starting any of the fan applications using the
PGoodState object at multi-user.target in case they start prior to the
service noted above starting.

Change-Id: I2e07acc020ed21253c272c8d20346058b06e78bc
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
1 file changed