#288 Windows Service parameters

v3.5.4
closed
nobody
5
2010-11-25
2010-09-07
ournames
No

When installing the service, how can I set the start parameter in the service?

Discussion

  • Hi,

    Not quite sure what you meant with your question.
    But you can set the parameters for your java application with the wrapper.app.parameter.<n> property:
    http://wrapper.tanukisoftware.com/doc/english/prop-app-parameter-n.html

    If you could provide a bit more information on what you exactly want to do, I would be happy to give you more advice.

    Cheers,
    Christian

     
  • ournames
    ournames
    2010-09-08

    More specifics:
    In a Windows Service, there is a Start Parameter. When the service is started, it uses this parameter. Using Wrapper batch file to install the service, I see it reads the wrapper.conf file. Is there somewhere in the wrapper.conf file that can set the Start Parameter in the Windows Service.
    In the example supplied that installs JBoss server as a service, JBoss needs many parameters. In my case, I use the -b parameter to bind the address of the server to the service.

     
  • Hi,

    for setting the start properties for a java application you just need to specify the wrapper.app.parameter.<n> properties accordingly:
    http://wrapper.tanukisoftware.com/doc/english/prop-app-parameter-n.html

    all parameters you want to pass over to jboss need to get specified in there.

    for instance:
    wrapper.app.parameter.<n>=-b
    wrapper.app.parameter.<n+1>=127.0.0.1
    .....

    cheers,
    christian

     
  • ournames
    ournames
    2010-09-08

    The wrapper.app.parameter.<n> Property works for the purposes I needed.
    Thank you.

     
    • status: open --> closed