mtkennerly / shawl

Windows service wrapper for arbitrary commands
MIT License
520 stars 15 forks source link

How to add service in Windows; program with parameters #56

Open gosforth opened 3 weeks ago

gosforth commented 3 weeks ago

I think this command is wrong:

shawl add --name jBPM -- C:/jbpm/bin/standalone.bat -Dorg.kie.mail.session=java:/jbpmMailSession

What is the correct syntax? Thanks for help

mtkennerly commented 3 weeks ago

Hi! That command looks okay to me. Are you getting an error message?

gosforth commented 3 weeks ago

Service/software is running but looks like the options are ignored.

mtkennerly commented 2 weeks ago

Could you share the Shawl log file for your service? It would be named shawl_for_jBPM_rCURRENT.log.

Does standalone.bat need to run from a particular working directory? You may want to try passing something like --cwd C:/jbpm/bin to Shawl.

Silly question, but did you double check that standalone.bat actually uses the arguments passed to it?

mtkennerly commented 1 week ago

@gosforth Just following up; do you still need help with this?