diff options
| author | Stephen D. Huston <shuston@apache.org> | 2011-10-21 18:55:57 +0000 |
|---|---|---|
| committer | Stephen D. Huston <shuston@apache.org> | 2011-10-21 18:55:57 +0000 |
| commit | 06391237ef1d0092f48e5e0b10136c68cfbe75f5 (patch) | |
| tree | db5706d79ab245fbf61f24cd48386b8cf02d7323 /cpp/src/qpidd.cpp | |
| parent | a8cc51558fa1430eb424b57dffbbad17f474bffe (diff) | |
| download | qpid-python-06391237ef1d0092f48e5e0b10136c68cfbe75f5.tar.gz | |
Add ability to run broker as a Windows service; resolves QPID-2519.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1187499 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. |
