srvcfg-manager State change issue fix.
srvcfg-manager State change is not working as
it need to act on both .service and .socket files.
Also used MaskUnitFiles and UnmaskUnitFiles to
make changes persistent.
Tested By:
Disabled/Enabled the state and checked the service
is stopping/starting properly. Also rebooted system
and checked persistent behaviour. Checked changing
port/channel and validated functionality.
Change-Id: Ib0dce95db3926f5d700fb729aae7bdac1caf64e4
Signed-off-by: AppaRao Puli <apparao.puli@linux.intel.com>
diff --git a/inc/utils.hpp b/inc/utils.hpp
index 67ced4c..27e66f3 100644
--- a/inc/utils.hpp
+++ b/inc/utils.hpp
@@ -33,8 +33,8 @@
const std::string &unitName,
const std::string &actionMethod);
-void systemdUnitFileStateChange(
+void systemdUnitFilesStateChange(
const std::shared_ptr<sdbusplus::asio::connection> &conn,
- const std::string &unitName, const std::string &unitState);
+ const std::vector<std::string> &unitFiles, const std::string &unitState);
bool checkSystemdUnitExist(const std::string &unitName);