mirror of
https://gitee.com/BDWare/agent-backend
synced 2025-01-10 01:44:14 +00:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
18f3fe7f5c
@ -1,10 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -a "./PID" ]; 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
|
||||
rm ./PID
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user