yintai2/start.sh

17 lines
318 B
Bash

#!/bin/bash
set -x
ROOT=$(cd `dirname $0`; pwd)
cd $ROOT
if [ "$BINARY" = "" ];then
BINARY="yintai-api"
fi
while [ true ];do
$ROOT/bin/$BINARY $@ >> log/run.log 2>&1
/usr/local/bin/sendproxy weixin "jiangyong,wangfuduo" "[$HOSTNAME] [$CONFIG_ENV] [$BINARY] 服务崩溃[`date +"%Y-%m-%d %H:%M:%S"`]"
sleep 10
done