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 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

1 Answer 1

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

 
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.