mirror of
https://gitee.com/BDWare/agent-backend
synced 2025-01-10 01:44:14 +00:00
feat: update cmstop.sh
update cmstop.sh to support MacOS
This commit is contained in:
parent
801c1a93f5
commit
0dd01e574e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user