monitor: Support for running with power off
Put in the remaining changes necessary so that fan monitor doesn't need
to be killed when power turns off.
This includes things like:
* Support for starting before the Present property is on D-Bus.
* Support for starting before the config file name is available.
* Stopping any running timers when power is turned off.
* Checking the power off rules when power turns on.
Most, but not all, of the changes are common between the JSON and YAML
modes, but this only truly supported when compiled for JSON.
This also removes the init vs monitor modes of operation, if compiled
for JSON.
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: Ic2c6848f24511c9dc763227e05bbebb4c8c80cd1
6 files changed