Use host state object to check if host is on

The code was using pgood to determine if host is on or off. Now we have
host state object, which is a more appropriate way to check host on/off.
So change pgood related code to use host state object.

Change-Id: I553c1a40922ca2e8bc6904688c55e85971bd4720
Signed-off-by: Lei YU <mine260309@gmail.com>
diff --git a/settings.cpp b/settings.cpp
index 650d03d..a3eada9 100644
--- a/settings.cpp
+++ b/settings.cpp
@@ -17,7 +17,7 @@
 {
     auto bus = sdbusplus::bus::new_default();
     std::vector<std::string> settingsIntfs =
-        {timeOwnerIntf, timeSyncIntf};
+        {timeOwnerIntf, timeSyncIntf, hostStateIntf};
     auto depth = 0;
 
     auto mapperCall = bus.new_method_call(mapperService,
@@ -57,6 +57,10 @@
         {
             timeSyncMethod = path;
         }
+        else if (hostStateIntf == interface)
+        {
+            hostState = path;
+        }
     }
 }