mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-16 21:43:33 +08:00
🍉 Sync 2026-05-15 20:04:19
This commit is contained in:
1 parent
f4f587f762
commit
78d8d030c8
33 files changed
+1466
-715
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