Thanks Ryan. I actually just tried what you suggested and it did spawn a second, however, I'm doing a little more research into the issue and may be a permissions issue on the jvm.config file itself. I'm going to play with that and see. I was worried I had the wrong syntax but as of right now, I don't think that's it, plus it's always good to have second set of eyes looking at it,
Phil On Fri, Apr 17, 2009 at 11:43 AM, Ryan Stille <[email protected]> wrote: > > I'm not seeing a problem with your script. When I change it to echo out > the start up commands instead of running them, this is what I get: > > The ColdFusion 8 server is starting up and will be available shortly. > su cfuser -c nohup /opt/jrun4/bin/jrun -start cfusion -config > jvm.config_dev > /opt/jrun4/logs/cfusion-event.log & > su cfuser -c nohup /opt/jrun4/bin/jrun -start dev_inter -config > jvm.config_dev > > > /opt/jrun4/servers/dev_inter/cfusion.ear/cfusion.war/WEB-INF/cfusion/logs/cfusion-event.log > & > su cfuser -c nohup /opt/jrun4/bin/jrun -start dev_www -config > jvm.config_dev > > > /opt/jrun4/servers/dev_www/cfusion.ear/cfusion.war/WEB-INF/cfusion/logs/cfusion-event.log > & > su cfuser -c nohup /opt/jrun4/bin/jrun -start test_inter -config > jvm.config_test > > > /opt/jrun4/servers/test_inter/cfusion.ear/cfusion.war/WEB-INF/cfusion/logs/cfusion-event.log > & > su cfuser -c nohup /opt/jrun4/bin/jrun -start test_www -config > jvm.config_test > > > /opt/jrun4/servers/test_www/cfusion.ear/cfusion.war/WEB-INF/cfusion/logs/cfusion-event.log > & > ====================================================================== > ColdFusion 8 has been started. > ColdFusion 8 will write logs to /opt/jrun4/logs/cfusion-event.log > ====================================================================== > > > It all looks good. What happens if you just try to run one of those > commands directly, like this: > su cfuser -c nohup /opt/jrun4/bin/jrun -start test_www -config > jvm.config_test > > > /opt/jrun4/servers/test_www/cfusion.ear/cfusion.war/WEB-INF/cfusion/logs/cfusion-event.log > & > > Does that cause two instances to start up? > > -Ryan > > Phillip Duba wrote: > > Hey everyone, > > > > I'm trying to create/modify the coldfusion8multi start startup scripts to > > utilize a different jvm.config folder for each instance of ColdFusion 8 > > that's been created. Essentially, I have dev and test instances on the > same > > box, each with it's own jvm.config. The script is below, compiled from > > documentation from Adobe and various blog posts/other emails (thanks > Steve > > Erat!). What I see when I use the script to start the services, is that > all > > the services get started with the -config setting, but then a duplicate > set > > are spawned without the -config and the first set of services are then > > stopped. Here's the abbreviated script: > > > > #!/bin/sh > > # MultiServer cfusion instance Init-Script > > > > CF_DIR="/opt/jrun4" > > RUNTIME_USER="cfuser" > > devservers="dev_inter dev_www" > > testservers="test_inter test_www" > > > > cfstart() { > > echo "The ColdFusion 8 server is starting up and will be available > shortly." > > su $RUNTIME_USER -c "nohup $CF_DIR/bin/jrun -start cfusion -config > > jvm.config_dev > $CF_DIR/logs/cfusion-event.log &" > > #su $RUNTIME_USER -c "nohup $CF_DIR/bin/jrun -start admin -config > > jvm.config_dev > $CF_DIR/logs/admin-event.log &" > > for server in $devservers > > do > > su $RUNTIME_USER -c "nohup $CF_DIR/bin/jrun -start $server -config > > jvm.config_dev > > > > $CF_DIR/servers/$server/cfusion.ear/cfusion.war/WEB-INF/cfusion/logs/cfusion-event.log > > &" > > done > > for server in $testservers > > do > > su $RUNTIME_USER -c "nohup $CF_DIR/bin/jrun -start $server -config > > jvm.config_test > > > > $CF_DIR/servers/$server/cfusion.ear/cfusion.war/WEB-INF/cfusion/logs/cfusion-event.log > > &" > > done > > echo > > "======================================================================" > > echo "ColdFusion 8 has been started." > > echo "ColdFusion 8 will write logs to $CF_DIR/logs/cfusion-event.log" > > echo > > "======================================================================" > > } > > > > ... > > > > case $1 in > > start) > > cfstart > > ;; > > > > ... > > esac > > > > exit 0 > > > > Any insight/help would be appreciated. This is ColdFusion 8.0.1 > Enterprise, > > 64-bit, on RHEL 5 64-bit. Thanks, > > > > Phil > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321752 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

