|
From: Leif M. <le...@ta...> - 2005-07-14 15:34:05
|
Ross, Klingensmith, Ross F wrote: > Can the wrapper take advantage of the ability to pass arguments while > starting and stopping services using the NET commands? > > Example: "net start/ service/ //arg1"/ > I had not known that was possible. No the Wrapper does not support this. > The need for this is that I have a service that requires a dynamic > argument into its main and therefore cant hardcode an app.param > > Another question: > > Once the service is installed, is the config file referenced on each > start/stop? If this were the case I could write a program that changes > the app.param in the config file and the problem would be solved. > The wrapper.conf file is loaded when the service is started, so yes, you can modify it before starting the service and the changes will take effect. An easy way to do this is to use include files to create a cascading config file. This way you simply create the include file and the main wrapper.conf stays unchanged. Much easier from batch files etc. http://wrapper.tanukisoftware.org/doc/english/props-cascading.html Cheers, Leif |