|
From: Leif M. <le...@ta...> - 2003-11-29 17:48:33
|
Andreas, >I'm currently in a situation where I need to add more parameters the the service's command line when installing my application via the wrapper on >Windows. >The only way to do this at the moment is to add them manually via the registry (or via an installer tool) which isn't very customer friendly. >I would suggest a new configuration property like wrapper.ntservice.parameters that could be appended to the command line quite easily. > > Actually, this should already work with the Wrapper. Just as can be done when launching the wrapper as a service app, you can also specify additional parameters when installing the Wrapper as an NT service. The Wrapper will record any and all parameters in the registry so they will be used when the Wrapper is launched as a service. Simply modify the install script or run from the command line as follows: Wrapper.exe -i ../wrapper.conf wrapper.debug=true wrapper.etc=etc The NT service manager will then launch the Wrapper using the following command stored in the registry: Wrapper.exe -s ../wrapper.conf wrapper.debug=true wrapper.etc=etc (The -s is an internal command used to tell the Wrapper that it is being run as a service) Cheers, Leif >P.S.: I tried to post this to the user list but our email servers seem to have some problems with the address. > > The SF mail servers can be a bit fickle at times. I sometimes can bounced myself. |