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##
No comments:
Post a Comment