summaryrefslogtreecommitdiffstats
path: root/src/monitor/monitor_sbus.c
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2014-09-21 13:42:29 +0200
committerJakub Hrozek <jhrozek@redhat.com>2014-10-09 17:18:17 +0200
commit1925ce32f7c1dc226be31d4301a0a1dbb2448baa (patch)
treebf04e6090f6a19ff562e97d93544d488cf36ccf2 /src/monitor/monitor_sbus.c
parent25072dd5274f07255cdc930f6257c4cbf74692de (diff)
downloadsssd-1925ce32f7c1dc226be31d4301a0a1dbb2448baa.tar.gz
sssd-1925ce32f7c1dc226be31d4301a0a1dbb2448baa.tar.xz
sssd-1925ce32f7c1dc226be31d4301a0a1dbb2448baa.zip
UTIL: Do not depend on monitor code
Just moves code around. There should be a way to use the server.c module without linking the monitor code. Reviewed-by: Pavel Reichl <preichl@redhat.com>
Diffstat (limited to 'src/monitor/monitor_sbus.c')
-rw-r--r--src/monitor/monitor_sbus.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/src/monitor/monitor_sbus.c b/src/monitor/monitor_sbus.c
index 544407ca2..3e6fbff9b 100644
--- a/src/monitor/monitor_sbus.c
+++ b/src/monitor/monitor_sbus.c
@@ -162,40 +162,6 @@ int monitor_common_res_init(struct sbus_request *dbus_req, void *data)
return sbus_request_return_and_finish(dbus_req, DBUS_TYPE_INVALID);
}
-errno_t monitor_common_rotate_logs(struct confdb_ctx *confdb,
- const char *conf_path)
-{
- errno_t ret;
- int old_debug_level = debug_level;
-
- ret = rotate_debug_files();
- if (ret) {
- sss_log(SSS_LOG_ALERT, "Could not rotate debug files! [%d][%s]\n",
- ret, strerror(ret));
- return ret;
- }
-
- /* Get new debug level from the confdb */
- ret = confdb_get_int(confdb, conf_path,
- CONFDB_SERVICE_DEBUG_LEVEL,
- old_debug_level,
- &debug_level);
- if (ret != EOK) {
- DEBUG(SSSDBG_FATAL_FAILURE, "Error reading from confdb (%d) [%s]\n",
- ret, strerror(ret));
- /* Try to proceed with the old value */
- debug_level = old_debug_level;
- }
-
- if (debug_level != old_debug_level) {
- DEBUG(SSSDBG_FATAL_FAILURE,
- "Debug level changed to %#.4x\n", debug_level);
- debug_level = debug_convert_old_level(debug_level);
- }
-
- return EOK;
-}
-
errno_t sss_monitor_init(TALLOC_CTX *mem_ctx,
struct tevent_context *ev,
struct mon_cli_iface *mon_iface,