touch glassfish
vi glassfish
以下を追記
GF_HOMEは適宜変更してください
GF_HOMEは適宜変更してください
#!/bin/sh # # Startup GlassFishServer 3.1.2 # # chkconfig: 2345 86 16 # description: GlassFish is Java application Server. # processname: glassfish # pidfile: /var/run/glassfish.pid # config: /usr/local/glassfish3/glassfish/config/asenv.conf # Source function library. . /etc/rc.d/init.d/functions GF_HOME=/usr/local/glassfish3/glassfish/ case "$1" in start) log_daemon_msg "Starting application server" "glassfish" $GF_HOME/bin/asadmin start-domain ;; restart|reload|force-reload) echo "Error: argument '$1' not supported. Use stop and wait and start." >&2 exit 3 ;; stop) $GF_HOME/bin/asadmin stop-domain log_daemon_msg "Stopping application server" "glassfish" ;; *) ;; esacchmod 755 glassfish
chkconfig --add glassfish
これで次回再起動時に自動でglassfishが起動します
お試しあれ!
0 件のコメント:
コメントを投稿