film/start.sh

17 lines
300 B
Bash

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