move systemd subscribe to util function

This code is replicated in multiple source files in this repo, put it in
the util repo so everyone can call it in one place.

Tested:
- Verified systemd signals seen and system boots

Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Change-Id: I8bf0343c79012cc91dea033038894a011fd37ef5
diff --git a/chassis_state_manager.hpp b/chassis_state_manager.hpp
index 7e9c7b9..6edaa7d 100644
--- a/chassis_state_manager.hpp
+++ b/chassis_state_manager.hpp
@@ -2,6 +2,7 @@
 
 #include "config.h"
 
+#include "utils.hpp"
 #include "xyz/openbmc_project/State/Chassis/server.hpp"
 #include "xyz/openbmc_project/State/PowerOnHours/server.hpp"
 
@@ -59,7 +60,7 @@
             sdeventplus::Event::get_default(), [this](auto&) { pohCallback(); },
             std::chrono::hours{1}, std::chrono::minutes{1})
     {
-        subscribeToSystemdSignals();
+        utils::subscribeToSystemdSignals(bus);
 
         createSystemdTargetTable();
 
@@ -113,15 +114,6 @@
      */
     bool determineStatusOfPSUPower();
 
-    /**
-     * @brief subscribe to the systemd signals
-     *
-     * This object needs to capture when it's systemd targets complete
-     * so it can keep it's state updated
-     *
-     **/
-    void subscribeToSystemdSignals();
-
     /** @brief Start the systemd unit requested
      *
      * This function calls `StartUnit` on the systemd unit given.