agent-backend/script/cmstop.sh
Frank.R.Wu b975a0227a feat: update SelfAdaptiveShardingExecutor
update SelfAdaptiveShardingExecutor to add height to the blocks; update cmstop.sh to not print error message when process doesn't exits
2021-12-03 15:29:50 +08:00

16 lines
310 B
Bash
Executable File

#!/bin/bash
if [ -a "./PID" ]; then
if [ -d '/proc' ]; then
ls /proc/$(cat PID)/cmdline 1>/dev/null 2>/dev/null
if [ $? -eq 0 ]; then
kill -9 $(cat PID)
echo "shutdown old contract manager"
fi
else
kill -9 $(cat PID)
echo "shutdown old contract manager"
fi
rm ./PID
fi