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.

25 lines
1.4 KiB

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