mirror of
https://gitee.com/BDWare/router-backend
synced 2026-02-14 23:49:25 +00:00
chore: add scripts and set tools
This commit is contained in:
10
script/ncstop.sh
Normal file
10
script/ncstop.sh
Normal 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
|
||||
Reference in New Issue
Block a user