#!/bin/bash
cd /home/mfqy/card/
loginMID=500001
env=prod-lc

cwd=`pwd`
echo $cwd

ml=login
mlret=`ps -ef |pgrep -f "$ml/$ml.*-i $loginMID"`

# 检查 ml 进程是否存在
if [ -z "$mlret" ]; then
    echo "loginNil"
    nohup $ml/$ml -i $loginMID -e $env -log_dir=log -alsologtostderr >/dev/null 2>&1 &
fi