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 am able to start Glassfish domain automatically, in other words I can run it as a service by using "asadmin create-service". When machine is restarted, domain is getting up automcatically.

I want similar thing for all instances of a cluster of domain started. Since when machine is restarted domain is run automatically, but instances in this machine still keep down.

Is it possible to start the cluster automatically?

Platform : Ubuntu 12.04

AS= Glassfish 3.1

share|improve this question

I have modified the glassfish service script file under /etc/init.d/ by adding .

 asadmin start-domain   $DOMAIN >/dev/null 2>&1; $ASADMIN  start-cluster $CLUSTER >/dev/null 2>&1 &
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.