[+] 脚本

This commit is contained in:
acgist
2023-02-04 11:31:24 +08:00
parent 952adad7b6
commit 5e1a25aa21
5 changed files with 26 additions and 18 deletions

View File

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