[
https://issues.apache.org/jira/browse/QPID-4269?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13444734#comment-13444734
]
Alexey Sviridov commented on QPID-4269:
---------------------------------------
After a brief study of this error, I realized when qpid starts as a service he
get arguments from function ServiceMain(argc, argv). But params stored in
service passed not to ServiceMain, but to main(argc, argv). When the main
determines that it is not running from a console, it's start ServiceMain
without arguments.
There is two possible solution at first look
1. fast and bad - pass these parameters ServiceMain through global variables
2. slow and good - get command line arguments right in ServiceMain, or pass
arguments by another way
Actually i'm from java world and wrote last C++ line about six years ago, so my
choice was first of course.
So my patch very ugly but works. I'm thionk someone can do this much better
> Qpid windows service ignore service parameters
> ----------------------------------------------
>
> Key: QPID-4269
> URL: https://issues.apache.org/jira/browse/QPID-4269
> Project: Qpid
> Issue Type: Bug
> Components: C++ Broker
> Affects Versions: 0.14, 0.16
> Environment: Windows
> Reporter: Alexey Sviridov
> Attachments: scm_args.patch
>
>
> When installing qpid as windows service (i.e. by command qpidd.exe --install
> --arguments --no-data-dir) qpid create service with arguments. It's fine,
> while you don't try to start created service. When starting servce qpid
> starts, but ignore all params. To be honest there is way to start service
> with params (by specifying they in another place for params in service dialog
> (greeting windows!)) but for only one start, this params not saved after
> closing service properties dialog
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]