Merge remote-tracking branch 'origin/master'

This commit is contained in:
CaiHQ 2021-11-21 23:21:28 +08:00
commit 18f3fe7f5c

View File

@ -1,8 +1,13 @@
#!/bin/bash
if [ -a "./PID" ]; then
ls /proc/$(cat PID)/cmdline
if [ $? -eq 0 ]; then
if [ -d '/proc' ]; then
ls /proc/$(cat PID)/cmdline
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