glassfish4系统启动脚本

来源:互联网 发布:四川人怎么样知乎 编辑:程序博客网 时间:2024/06/05 16:06

glassfish4系统启动脚本,你就是使用如下方式启动:


$ service glassfish start



启动脚本

  • 启动glassfish4的文件实例 :

set -eASADMIN=/usr/local/glassfish4/bin/asadmincase "$1" instart)        echo -n "Starting GlassFish server: glassfish"        # Increase file descriptor limit:        ulimit -n 32768        # Allow "memory overcommit":        # (basically, this allows to run exec() calls from inside the        # app, without the Unix fork() call physically hogging 2X        # the amount of memory glassfish is already using)        echo 1 > /proc/sys/vm/overcommit_memory        #echo        #echo "GLASSFISH IS UNDER MAINTENANCE;"        #echo "PLEASE DO NOT USE service init script."        #echo                LANG=en_US.UTF-8; export LANG        $ASADMIN start-domain domain1        echo "."        ;;          stop)        echo -n "Stopping GlassFish server: glassfish"        #echo        #echo "GLASSFISH IS UNDER MAINTENANCE;"        #echo "PLEASE DO NOT USE service init script."        #echo        $ASADMIN stop-domain domain1        echo "."        ;;          *)        echo "Usage: /etc/init.d/glassfish {start|stop}"        exit 1        esacexit 0



0 0