chore: add scripts and set tools

This commit is contained in:
Frank.R.Wu
2021-10-29 17:47:47 +08:00
parent 312b3336bb
commit 38970a3fca
5 changed files with 72 additions and 2 deletions

10
script/ncstop.sh Normal file
View File

@@ -0,0 +1,10 @@
#!/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