...
代码块 | ||
---|---|---|
| ||
#!/bin/bash PRG="$0" PRGDIR=`dirname "$PRG"` cd $PRGDIR Current_Dir=$(cd `dirname $0`; pwd) case "$1" in 'start') nohup sh ${Current_Dir}/run.sh > /dev/null 2>&1 & ;; 'stop') kill -9 $(ps -ef | grep "smartbi-unionserverSmartbiUnionServer" | grep "log.properties" | awk '{print $2}') ;; 'restart') kill -9 $(ps -ef | grep "smartbi-unionserverSmartbiUnionServer" | grep "log.properties" | awk '{print $2}') nohup sh ${Current_Dir}/run.sh > /dev/null 2>&1 & ;; *) echo "Usage: |
...