#!/bin/bash
CURR_DIR=$( cd $(dirname $0) && pwd )
PID=$(ps -ef | grep -w "${CURR_DIR}"/dockerBin_monitor.sh | grep -v grep | awk '{print $2}')
if [ -z "${PID}" ];then
    #log  "start to run dockerBin_monitor.sh"
    /bin/sh "${CURR_DIR}"/dockerBin_monitor.sh &
else
    #log "dockerBin_monitor.sh process exist, pid: ${PID}"
    log "exit $0"
    exit
fi
