Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a script that runs some java process:


   java -cp $CLASSPATH 

can I have an Upstart script stanza like this?

end script

If so, do I need an?

expect fork

share|improve this question

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:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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