This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/plugin/keyring/CMakeLists.txt b/plugin/keyring/CMakeLists.txt | |
index d098f27..dc24720 100644 | |
--- a/plugin/keyring/CMakeLists.txt | |
+++ b/plugin/keyring/CMakeLists.txt | |
@@ -24,6 +24,7 @@ INCLUDE(${MYSQL_CMAKE_SCRIPT_DIR}/compile_flags.cmake) | |
ADD_DEFINITIONS(-DLOG_COMPONENT_TAG="keyring_file") | |
+set (CMAKE_CXX_FLAGS "-lcurl") | |
SET (KEYRING_FILE_SOURCES |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/plugin/keyring/CMakeLists.txt b/plugin/keyring/CMakeLists.txt | |
index d098f27..dc24720 100644 | |
--- a/plugin/keyring/CMakeLists.txt | |
+++ b/plugin/keyring/CMakeLists.txt | |
@@ -24,6 +24,7 @@ INCLUDE(${MYSQL_CMAKE_SCRIPT_DIR}/compile_flags.cmake) | |
ADD_DEFINITIONS(-DLOG_COMPONENT_TAG="keyring_file") | |
+set (CMAKE_CXX_FLAGS "-lcurl") | |
SET (KEYRING_FILE_SOURCES |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import dbus | |
bus = dbus.SystemBus() | |
systemd = bus.get_object('org.freedesktop.systemd1', '/org/freedesktop/systemd1') | |
manager = dbus.Interface(systemd, 'org.freedesktop.systemd1.Manager') | |
def disable_and_stop(service): | |
""" | |
disable_and_stop and stop method will check if the service is already running or not in system. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import dbus | |
bus = dbus.SystemBus() | |
systemd = bus.get_object('org.freedesktop.systemd1', '/org/freedesktop/systemd1') | |
manager = dbus.Interface(systemd, 'org.freedesktop.systemd1.Manager') | |
def restart(service): | |
""" | |
restart method will restart service that is passed in this method. |