[*] 脚本

This commit is contained in:
acgist
2023-06-11 09:43:15 +08:00
parent 6d732dc9b3
commit fa7c87d957

View File

@@ -8,10 +8,10 @@ if [ ! -z "$processId" ]; then
while [ ! -z "$processId" ] while [ ! -z "$processId" ]
do do
echo -n "." echo -n "."
if [ "$killIndex" -le 0 ]; then if [ $killIndex -le 0 ]; then
# 优雅关机 # 优雅关机
kill -15 $processId kill -15 $processId
elif [ "$killIndex" -ge 10 ]; then elif [ $killIndex -ge 10 ]; then
echo -n '强制关闭' echo -n '强制关闭'
# 强制关机 # 强制关机
kill -9 $processId kill -9 $processId