mirror of
https://github.com/qbittorrent/docker-qbittorrent-nox.git
synced 2024-11-23 09:19:47 +00:00
Fix program did not exit cleanly
When running `docker compose down`, docker sends SIGTERM to tini and tini sends it to all child programs (`entrypoint.sh` and therefore qbt-nox and its child programs). However `entrypoint.sh` exits quite quickly and qbt was still cleaning up but tini detects that its first child process (`entrypoint.sh`) is exited so itself exits too and leading to docker shutting down the container abruptly. Now qbt-nox is being placed as the first child process of tini. Thanks to @thrnz for providing a fix. Fixes #9.
This commit is contained in:
parent
9708c583fa
commit
a27e526829
@ -58,8 +58,9 @@ if [ -n "$UMASK" ]; then
|
||||
umask "$UMASK"
|
||||
fi
|
||||
|
||||
doas -u qbtUser \
|
||||
qbittorrent-nox \
|
||||
--profile="$profilePath" \
|
||||
--webui-port="$QBT_WEBUI_PORT" \
|
||||
"$@"
|
||||
exec \
|
||||
doas -u qbtUser \
|
||||
qbittorrent-nox \
|
||||
--profile="$profilePath" \
|
||||
--webui-port="$QBT_WEBUI_PORT" \
|
||||
"$@"
|
||||
|
@ -58,8 +58,9 @@ if [ -n "$UMASK" ]; then
|
||||
umask "$UMASK"
|
||||
fi
|
||||
|
||||
doas -u qbtUser \
|
||||
qbittorrent-nox \
|
||||
--profile="$profilePath" \
|
||||
--webui-port="$QBT_WEBUI_PORT" \
|
||||
"$@"
|
||||
exec \
|
||||
doas -u qbtUser \
|
||||
qbittorrent-nox \
|
||||
--profile="$profilePath" \
|
||||
--webui-port="$QBT_WEBUI_PORT" \
|
||||
"$@"
|
||||
|
Loading…
Reference in New Issue
Block a user