[jboss-user] [Installation, Configuration & Deployment] - Re: need help, jboss init script not work // JBOSS_CMD_START
erasmomarciano
do-not-reply at jboss.com
Fri Nov 6 09:56:50 EST 2009
I suggest to create an script
Example
start_node.sh
| #!/usr/bin/sh
|
| JBOSS_DIR=/YOURPATH/jboss-5.0.1.GA
| CONSOLE_LOG=$JBOSS_DIR/console.log
| #utente che lancia jboss
| USERNAME=jboss
|
| SERVER_NAME=dwia
|
| PID=$(ps -efax | grep java | grep $USERNAME | grep jboss | grep -v grep | awk '{print $2" "$3}' | wc -l)
|
| if [ $PID -eq 1 ]
| then
| echo " JBoss turn on."
| exit 1
| else
|
| cd $JBOSS_DIR
| # Start senza cluster
| #nohup $JBOSS_DIR/bin/run.sh -c $SERVER_NAME > $CONSOLE_LOG &
| nohup $JBOSS_DIR/bin/run.sh -b 11.1.242.101 -c $SERVER_NAME > $CONSOLE_LOG &
|
| sleep 3
| echo " JBoss State ON"
| echo "you check : tail -f $CONSOLE_LOG"
| fi
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4264348#4264348
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4264348
More information about the jboss-user
mailing list