router-backend/script/ncstop.sh
2021-10-29 17:47:47 +08:00

11 lines
169 B
Bash

#!/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