This commit is contained in:
2024-12-24 13:40:15 +08:00
parent 4a0e19cc8b
commit 17fca60282
28 changed files with 50 additions and 38 deletions

View File

@@ -55,7 +55,7 @@ function Main {
RestoreConf
StartProc
trap "GOT_SIGTERM=1; Print Got SIGTERM ..." SIGTERM
while [ -z "$GOT_SIGTERM" ] && sleep 1; do
while [ -z "$GOT_SIGTERM" ] && sleep 2; do
for pid in $PIDS; do
[ ! -e /proc/$pid ] && Print Unexpected error! && exit
done