agent-backend/script/cmstop.sh

11 lines
174 B
Bash
Raw Normal View History

2021-10-29 09:47:48 +00:00
#!/bin/bash
if [ -a "./PID" ]; then
ls /proc/$(cat PID)/cmdline
if [ $? -eq 0 ]; then
kill -9 $(cat PID)
echo "shutdown old contract manager"
fi
rm ./PID
fi