phosphor-ldap-conf: switch between config files while enabling/disabling LDAP
While creating LDAP configuration take a backup of existing config files
and restore them when LDAP configuration is disabled.
Change-Id: Id37138107311a56c5066bc66137a2d55e1e23099
Signed-off-by: Nagaraju Goruganti <ngorugan@in.ibm.com>
diff --git a/phosphor-ldap-config/ldap_configuration.hpp b/phosphor-ldap-config/ldap_configuration.hpp
index 58e9930..6601bd2 100644
--- a/phosphor-ldap-config/ldap_configuration.hpp
+++ b/phosphor-ldap-config/ldap_configuration.hpp
@@ -196,6 +196,11 @@
*/
virtual void restartService(const std::string& service);
+ /** @brief stops given service
+ * @param[in] service - Service to be stopped.
+ */
+ virtual void stopService(const std::string& service);
+
/** @brief delete the config D-Bus object.
*/
void deleteObject();