diff options
| author | Stephen D. Huston <shuston@apache.org> | 2011-03-08 01:41:53 +0000 |
|---|---|---|
| committer | Stephen D. Huston <shuston@apache.org> | 2011-03-08 01:41:53 +0000 |
| commit | 718ff5b34dd1e87eb79fa4c61fec668d1dc33103 (patch) | |
| tree | dcfb94e75656c6c239fc3dcb754cd2015126424d /cpp/src/qpidd.cpp | |
| parent | d07e9a0a24eeab9b16706c8a001864af1f181182 (diff) | |
| download | qpid-python-718ff5b34dd1e87eb79fa4c61fec668d1dc33103.tar.gz | |
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
Diffstat (limited to 'cpp/src/qpidd.cpp')
| -rw-r--r-- | cpp/src/qpidd.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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<QpiddOptions> 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. |
