From 718ff5b34dd1e87eb79fa4c61fec668d1dc33103 Mon Sep 17 00:00:00 2001 From: "Stephen D. Huston" Date: Tue, 8 Mar 2011 01:41:53 +0000 Subject: Changes applied to be able to install, uninstall, start, stop, run service. Has trouble running as LocalService (SCM reports timeout after 1 second) git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/QPID-2519@1079078 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpidd.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cpp/src/qpidd.cpp') diff --git a/cpp/src/qpidd.cpp b/cpp/src/qpidd.cpp index a7c1dbe8a6..a0e329ca9d 100644 --- a/cpp/src/qpidd.cpp +++ b/cpp/src/qpidd.cpp @@ -31,7 +31,8 @@ using namespace std; auto_ptr options; -int main(int argc, char* argv[]) +// Broker real entry; various system-invoked entrypoints call here. +int run_broker(int argc, char *argv[], bool hidden) { try { @@ -43,6 +44,8 @@ int main(int argc, char* argv[]) // module-supplied options. try { bootOptions.parse (argc, argv, bootOptions.common.config, true); + if (hidden) + bootOptions.log.sinkOptions->detached(); qpid::log::Logger::instance().configure(bootOptions.log); } catch (const std::exception& e) { // Couldn't configure logging so write the message direct to stderr. -- cgit v1.2.1