diff options
author | Antonio Paunovic <antonio.paunovic@sartura.hr> | 2017-05-26 14:52:40 +0000 |
---|---|---|
committer | Antonio Paunovic <antonio.paunovic@sartura.hr> | 2017-05-26 15:01:46 +0000 |
commit | 48ab73fafc44874f5b45dbea6935d3db3b93fade (patch) | |
tree | 08d5ee621addea512a62f408f3a61af13ca8f953 /net/sysrepo/patches | |
parent | f587c94107115df677fdb5bc9b70cf6134506e8a (diff) |
sysrepo: add patch for diabling autostart
Signed-off-by: Antonio Paunovic <antonio.paunovic@sartura.hr>
Diffstat (limited to 'net/sysrepo/patches')
-rw-r--r-- | net/sysrepo/patches/004-disable-sysrepod-autostart | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/net/sysrepo/patches/004-disable-sysrepod-autostart b/net/sysrepo/patches/004-disable-sysrepod-autostart new file mode 100644 index 000000000..3261aee13 --- /dev/null +++ b/net/sysrepo/patches/004-disable-sysrepod-autostart @@ -0,0 +1,19 @@ +Index: sysrepo-e4a5705a4c5293ba121048c71899b98243d99edf/src/clientlib/client_library.c +=================================================================== +--- sysrepo-e4a5705a4c5293ba121048c71899b98243d99edf.orig/src/clientlib/client_library.c ++++ sysrepo-e4a5705a4c5293ba121048c71899b98243d99edf/src/clientlib/client_library.c +@@ -405,14 +405,6 @@ sr_connect(const char *app_name, const s + if (SR_ERR_OK != rc) { + if (opts & SR_CONN_DAEMON_REQUIRED) { + if ((opts & SR_CONN_DAEMON_START) && (0 == getuid())) { +- /* sysrepo daemon start requested and process is running under root privileges */ +- SR_LOG_DBG_MSG("Sysrepo daemon not detected, starting it."); +- ret = system("sysrepod"); +- if (0 == ret) { +- SR_LOG_INF_MSG("Sysrepo daemon has been started."); +- } else { +- SR_LOG_WRN("Unable to start sysrepo daemon, error code=%d.", ret); +- } + /* retry to connect again in any case */ + rc = cl_socket_connect(connection, SR_DAEMON_SOCKET); + CHECK_RC_LOG_GOTO(rc, cleanup, "Unable to connect to sysrepod: %s.", sr_strerror(rc)); |