router-backend/script/ncstop.sh

11 lines
169 B
Bash
Raw Permalink Normal View History

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