resin重启

15788阅读 0评论2012-02-24 linux_kaige
分类:LINUX


  1. [root@CMS1 resin]# ./bin/httpd.sh start
  2. Resin/3.1.10 can't start -server '' for watchdog at 127.0.0.1:6600.
  3. java.lang.IllegalStateException: Can't start new task because of old task 'WatchdogTask[Watchdog[]]'
  4. [root@CMS1 resin]# cd -
  5. /opt/resin/conf
  6. [root@CMS1 conf]# view resin.conf
  7. [root@CMS1 conf]# cd -
  8. /opt/resin
  9. [root@CMS1 resin]# ./bin/httpd.sh restart
  10. Resin/3.1.10 stopped -server '' for watchdog at 127.0.0.1:6600
  11. [root@CMS1 resin]#
resin启动脚本:http.sh

点击(此处)折叠或打开

  1. [root@admin ~]# cat /opt/resin/bin/httpd.sh
  2. #! /bin/sh
  3. #
  4. # See contrib/init.resin for /etc/rc.d/init.d startup script
  5. #
  6. # resin.sh can be called like apachectl
  7. #
  8. # resin.sh -- execs resin in the foreground
  9. # resin.sh start -- starts resin in the background
  10. # resin.sh stop -- stops resin
  11. # resin.sh restart -- restarts resin
  12. #
  13. # resin.sh will return a status code if the wrapper detects an error, but
  14. # some errors, like bind exceptions or Java errors, are not detected.
  15. #
  16. # To install, you'll need to configure JAVA_HOME and RESIN_HOME and
  17. # copy contrib/init.resin to /etc/rc.d/init.d/resin. Then
  18. # use "unix# /sbin/chkconfig resin on"
  19. if test -n "${JAVA_HOME}"; then
  20. if test -z "${JAVA_EXE}"; then
  21. JAVA_EXE=$JAVA_HOME/bin/java
  22. fi
  23. fi
  24. #
  25. # trace script and simlinks to find the wrapper
  26. #
  27. if test -z "${RESIN_HOME}"; then
  28. script=`/bin/ls -l $0 | awk '{ print $NF; }'`
  29. while test -h "$script"
  30. do
  31. script=`/bin/ls -l $script | awk '{ print $NF; }'`
  32. done
  33. bin=`dirname $script`
  34. RESIN_HOME="$bin/.."
  35. fi
  36. exec $JAVA_EXE -jar ${RESIN_HOME}/lib/resin.jar $*
  37. [root@admin ~]#








上一篇:.bash_profile profile bashrc详解
下一篇:shell 的分类