projects
/
metaproxy-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
limit=0 means unlimited MP-632
[metaproxy-moved-to-github.git]
/
src
/
metaproxy_prog.cpp
diff --git
a/src/metaproxy_prog.cpp
b/src/metaproxy_prog.cpp
index
170e923
..
c470b90
100644
(file)
--- a/
src/metaproxy_prog.cpp
+++ b/
src/metaproxy_prog.cpp
@@
-218,6
+218,11
@@
static int sc_main(
, test_config ? "test" : "start"
);
, test_config ? "test" : "start"
);
+ char yaz_version_str[20];
+ char yaz_sha1_str[41];
+ yaz_version(yaz_version_str, yaz_sha1_str);
+ yaz_log(YLOG_LOG, "YAZ %s %s", yaz_version_str, yaz_sha1_str);
+
xmlInitParser();
LIBXML_TEST_VERSION
xmlInitParser();
LIBXML_TEST_VERSION
@@
-260,9
+265,11
@@
static int sc_main(
yaz_sc_running(s);
yaz_sc_running(s);
- yaz_daemon("metaproxy", mode, mode == YAZ_DAEMON_DEBUG ?
- work_debug : work_normal, router, pidfile, uid);
+ yaz_daemon("metaproxy", mode | YAZ_DAEMON_LOG_REOPEN,
+ (mode & YAZ_DAEMON_FORK) ? work_normal : work_debug,
+ router, pidfile, uid);
}
}
+ delete router;
}
catch (std::logic_error &e) {
yaz_log(YLOG_FATAL,"std::logic error: %s" , e.what() );
}
catch (std::logic_error &e) {
yaz_log(YLOG_FATAL,"std::logic error: %s" , e.what() );