Hello I'm not an expert, but I rather create one script for each app in init.d, this let me stop or start each app separately.
On 15/09/11 13:10, Alan Wright wrote: > Hi > > Migrating from resin 2 to resin 4.0.22 > > I am trying to configure a load balancer in a web-tier cluster and 2 > apps in an app-tier as per docs for a single machine. > > For the init.d/resin startup is there a neat way to specify that I want > all servers to start or do i just have to do: > > su $USER -c """$JAVA -jar $RESIN_HOME/lib/resin.jar $ARGS -server web-a > start""" 1>> $CONSOLE 2>> $CONSOLE > su $USER -c """$JAVA -jar $RESIN_HOME/lib/resin.jar $ARGS -server app-a > start""" 1>> $CONSOLE 2>> $CONSOLE > su $USER -c """$JAVA -jar $RESIN_HOME/lib/resin.jar $ARGS -server app-b > start""" 1>> $CONSOLE 2>> $CONSOLE > > > I can't find anything in the docs which refer to doing this config o a > single machine but seem to assume it is done on separate machines as far > as init.d is concerned. > > I have tried > > -server a > -server all > -server web-a -server app-a -server app-b > -server web-a,app-a,app-b > -server web-a:app-a:app-b > > > At the moment i am starting each on a separate line as above which works > for startup. > > For shutdown I get an error that app-b failed to stop which may be to do > with order of shutdown? > > Is there a best practice order for startup/shutdown? > > eg start web-tier then app-tier / stop app-tier then web-tier > > > Thanks for any suggestions > > > regards > > > > Alan > > > > > > > > -- Riccardo Cohen Architecte du Logiciel http://www.architectedulogiciel.fr BP 77536 37075 Tours Cedex 2 +33 (0)6.09.83.64.49 Membre du réseau http://www.reflexe-conseil-centre.org _______________________________________________ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest