Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a script that runs some java process:

/apps/run_my_app.sh:

   #!/bin/sh
   CLASSPATH=foo
   java -cp $CLASSPATH foo.app 

can I have an Upstart script stanza like this?

script
    /apps/run_my_app.sh
end script

If so, do I need an?

expect fork

share|improve this question

1 Answer 1

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

 
discard

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.