2023-08-04 11:13:41 +08:00
|
|
|
#!/bin/bash
|
|
|
|
set -x
|
|
|
|
ROOT=$(cd `dirname $0`; pwd)
|
|
|
|
cd $ROOT
|
|
|
|
|
|
|
|
if [ "$BINARY" = "" ];then
|
2025-03-08 23:55:53 +08:00
|
|
|
BINARY="enterprise-api"
|
2023-08-04 11:13:41 +08:00
|
|
|
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
|
|
|
|
|
|
|
|
|