|
Lines 2832-2837
Link Here
|
| 2832 |
ret = server_setup(MONITOR_NAME, flags, monitor->conf_path, &main_ctx); |
2832 |
ret = server_setup(MONITOR_NAME, flags, monitor->conf_path, &main_ctx); |
| 2833 |
if (ret != EOK) return 2; |
2833 |
if (ret != EOK) return 2; |
| 2834 |
|
2834 |
|
|
|
2835 |
/* Use confd initialized in server_setup. ldb_tdb module (1.4.0) check PID |
| 2836 |
* of process which initialized db for locking purposes. |
| 2837 |
* Failed to unlock db: ../ldb_tdb/ldb_tdb.c:147: |
| 2838 |
* Reusing ldb opened by pid 28889 in process 28893 |
| 2839 |
*/ |
| 2840 |
talloc_zfree(monitor->cdb); |
| 2841 |
monitor->cdb = main_ctx->confdb_ctx; |
| 2842 |
|
| 2843 |
ret = confdb_get_domains(monitor->cdb, &monitor->domains); |
| 2844 |
if (ret != EOK) { |
| 2845 |
DEBUG(SSSDBG_FATAL_FAILURE, "No domains configured.\n"); |
| 2846 |
return 4; |
| 2847 |
} |
| 2848 |
|
| 2835 |
monitor->is_daemon = !opt_interactive; |
2849 |
monitor->is_daemon = !opt_interactive; |
| 2836 |
monitor->parent_pid = main_ctx->parent_pid; |
2850 |
monitor->parent_pid = main_ctx->parent_pid; |
| 2837 |
monitor->ev = main_ctx->event_ctx; |
2851 |
monitor->ev = main_ctx->event_ctx; |