You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
1.3 KiB

  1. --- a/src/clientlib/client_library.c
  2. +++ b/src/clientlib/client_library.c
  3. @@ -396,13 +396,13 @@ sr_connect(const char *app_name, const s
  4. if (opts & SR_CONN_DAEMON_REQUIRED) {
  5. if ((opts & SR_CONN_DAEMON_START) && (0 == getuid())) {
  6. /* sysrepo daemon start requested and process is running under root privileges */
  7. - SR_LOG_DBG_MSG("Sysrepo daemon not detected, starting it.");
  8. - ret = system("sysrepod");
  9. - if (0 == ret) {
  10. - SR_LOG_INF_MSG("Sysrepo daemon has been started.");
  11. - } else {
  12. - SR_LOG_WRN("Unable to start sysrepo daemon, error code=%d.", ret);
  13. - }
  14. + //SR_LOG_DBG_MSG("Sysrepo daemon not detected, starting it.");
  15. + //ret = system("sysrepod");
  16. + //if (0 == ret) {
  17. + // SR_LOG_INF_MSG("Sysrepo daemon has been started.");
  18. + //} else {
  19. + // SR_LOG_WRN("Unable to start sysrepo daemon, error code=%d.", ret);
  20. + //}
  21. /* retry to connect again in any case */
  22. rc = cl_socket_connect(connection, SR_DAEMON_SOCKET);
  23. CHECK_RC_LOG_GOTO(rc, cleanup, "Unable to connect to sysrepod: %s.", sr_strerror(rc));