ann
          冰是沒有未來的,因為它的永恒
          posts - 107,comments - 34,trackbacks - 0
          #!/bin/sh
          PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
          #################################
          # application: test
          # DFILE      : pid file
          # GDIR       : application webapp
          # LOGDIR     : logs dir
          ######################

          NAME=et-play
          TestDIR
          ="/data/webapps/play/test"
          GDIR
          ="${TestDIR}/test"
          PIDFILE
          ="${TestDIR}/${NAME}.pid"
          LOGDIR
          ="${GDIR}/logs"
          APP_USER
          =test
          # Timeout in seconds for the shutdown of webapps
          APP_SHUTDOWN=30

          case 
          "$1" in
             start)        
                   
                   echo 
          $pwd
                   su 
          - ${APP_USER} -"play start  $GDIR >> $LOGDIR/log.log 2>&1 &"
                   echo 
          "$NAME. start finish"
                  ;;
             stop)
                  echo 
          -"Stopping $DESC: "
                  su 
          - ${APP_USER} -" play  stop  $GDIR >> $LOGDIR/log.log 2>&1 &  "              
                  ;;
             restart)
                  $
          0 stop $*
                  
          sleep 1
                  $
          0 start $*
                  ;;
             
          *)
                  echo 
          "Usage: ${ETDIR}/bin/${NAME}.sh {start|stop|restart}" >&2
                  
          exit 1
                  ;;
          esac

          exit 0
          posted on 2010-03-19 13:22 冰是沒有未來的,因為它的永恒 閱讀(221) 評論(0)  編輯  收藏 所屬分類: playframework

          當下,把心放下 放下如果是可能的,那一定是在當下,
          不在過去,也不在未來。
          當下放下。唯有活在當下,你的問題才能放下。

          主站蜘蛛池模板: 贡嘎县| 紫阳县| 东乡县| 山东省| 葵青区| 余姚市| 新安县| 岳阳县| 瑞昌市| 屯留县| 玉树县| 宁阳县| 汾阳市| 黄骅市| 静宁县| 凌云县| 临江市| 勐海县| 阿荣旗| 乐陵市| 花莲市| 安徽省| 洛川县| 大同县| 铜陵市| 渑池县| 浦北县| 乌拉特后旗| 延边| 静乐县| 庆安县| 沛县| 汝阳县| 永定县| 新龙县| 沂水县| 宿迁市| 华亭县| 贞丰县| 上虞市| 曲周县|