Skip to content

Commit

Permalink
Merge pull request #22 from jimsihk/fix/shutdown-timeout
Browse files Browse the repository at this point in the history
Fix shutdown timeout invalid parameter
  • Loading branch information
erseco authored Mar 15, 2024
2 parents 4b3e858 + 01c3d7b commit 879ce55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rootfs/bin/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ shutdown() {

# kill any other processes still running in the container
for _pid in $(ps -eo pid | grep -v PID | tr -d ' ' | grep -v '^1$' | head -n -6); do
timeout -t 5 /bin/sh -c "kill $_pid && wait $_pid || kill -9 $_pid"
timeout 5 /bin/sh -c "kill $_pid && wait $_pid || kill -9 $_pid"
done
exit
}
Expand Down Expand Up @@ -67,4 +67,4 @@ done
trap shutdown SIGTERM SIGHUP SIGQUIT SIGINT
wait $RUNSVDIR

shutdown
shutdown

0 comments on commit 879ce55

Please sign in to comment.