Start POCO as Windows service with parameters fix #2190#2205
Start POCO as Windows service with parameters fix #2190#2205DomXC wants to merge 1 commit intopocoproject:poco-1.9.1from
Conversation
… where args are passed to this member using bool isService(const ArgVec& args); bool isService(int argc, wchar_t** argv); or bool isService(int argc, char** argv);
|
1.8.2 branch is not valid anymore, it has become 1.9.0, but i'm not sure if @obiltschnig wants to include this for that release. so, this should go against either 1.9.0 or (future) 1.9.1 branch |
|
OK, thank you, so, is there any guideline, what to do in this case? |
fix it and push to your branch, changes will show in the pull and CI will trigger again. |
|
Please re-target the pull request to poco-1.9.1 branch. |
|
Please re-target for poco-1.10.0 branch. |
|
It's not in the 1.10 version, please fix! |
|
Would be great to have a proper PR for the |
|
The following code reads the "Start Parameters" field of the Service Properties Dialog box. This is very useful for ONE time starts of a service. This is NOT permanent. For that you would have to parse the "Image" registry key for the service. For a FULL feature add, I would suggest that both capabilities by added. The "Start Parameters" field is very useful for one start parameters such as increasing the logging level for problem resolution. Yes this was a quick hack copying code from a Microsoft support web page. NOTE: in 1.10.1 on Windows10, unregistering a service does not work. an error message complains about only using /unregisterservice once. No matter though. I just used sc stop SERVICENAME in a batch file. int #if defined(POCO_OS_FAMILY_WINDOWS) #endif #if defined(POCO_OS_FAMILY_WINDOWS) #if defined(POCO_OS_FAMILY_WINDOWS) } |
Args are passed to _argsSvc member using isService, params are appended to params of "Path to executable" service property.