I have a script that runs some java process:


   java -cp $CLASSPATH foo.app 

can I have an Upstart script stanza like this?

end script

If so, do I need an?

expect fork


Yes, you can do that if you want to.

Regarding 'expect fork', it depends what your particular JVM and Java app is doing. Upstart needs to know how many times your service forks. Please see:

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.