mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-11-08 05:04:46 +08:00
update 2026-05-15 10:41:50
This commit is contained in:
1 parent
f07c8fae7f
commit
a4acef8e4b
7 files changed
+12
-12
No files matched your search
@@ -38,7 +38,7 @@ while [ 1 -eq 1 ]; do
|
||||
# 检查是否超过最大重启次数
|
||||
[ "$restart_count" -ge "$MAX_RESTART_COUNT" ] && continue
|
||||
|
||||
if ! pgrep -f "$cmd_check" >/dev/null; then
|
||||
if ! busybox pgrep -f "$cmd_check" >/dev/null; then
|
||||
restart_count=$((restart_count + 1))
|
||||
echo "$restart_count" > "$stats_file"
|
||||
#echo "${cmd} 进程挂掉,重启" >> /tmp/log/passwall.log
|
||||
|
||||
Reference in new issue
Block a user