Sign in
Google apps
Main menu
Post a Comment On:
j4neiros
"Glassfish start/stop script for Ubuntu"
No comments yet. -
1 – 0 of 0
#!/bin/bash
GF_DIR=/usr/share/glassfishv2
GF_DOMAIN_DIR=/var/lib/glassfishv2/domains/domain1
case "$1" in
start)
#${GLASSFISHHOME}/bin/asadmin start-database
${GF_DIR}/bin/asadmin start-domain --user admin --passwordfile ${GF_DOMAIN_DIR}/config/password domain1
;;
stop)
${GF_DIR}/bin/asadmin stop-domain domain1
#${GLASSFISHHOME}/bin/asadmin stop-database
;;
restart)
${GF_DIR}/bin/asadmin stop-domain domain1
#${GLASSFISHHOME}/bin/asadmin stop-database
#${GLASSFISHHOME}/bin/asadmin start-database
${GF_DIR}/bin/asadmin start-domain --user admin --passwordfile ${GF_DOMAIN_DIR}/config/passwordfile domain1
;;
*)
echo $"usage: $0 {start|stop|restart}"
exit 1
esac
##END##
posted by J. Ernesto Aneiros at
10:40 AM
on Oct 4, 2010
Leave your comment
You can use some HTML tags, such as
<b>, <i>, <a>
Choose an identity
Google Account
You will be asked to sign in after submitting your comment.
Name/URL
Comment with your Google account if you’d like to be able to manage your comments in the future. If you comment anonymously, you won’t be able to edit or delete your comment.
Learn more
Name
URL
Anonymous
Comment with your Google account if you’d like to be able to manage your comments in the future. If you comment anonymously, you won’t be able to edit or delete your comment.
Learn more
Please prove you're not a robot
"Glassfish start/stop script for Ubuntu"
No comments yet. -