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:321736
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to