Skip to content

Commit 3aafc05

Browse files
committed
Add shutdown grace readme note
1 parent cefdc74 commit 3aafc05

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ services:
119119
- 8080:8080
120120
- 6881:6881
121121
- 6881:6881/udp
122+
stop_grace_period: "10s" #optional
122123
restart: unless-stopped
123124
```
124125
@@ -137,6 +138,7 @@ docker run -d \
137138
-p 6881:6881/udp \
138139
-v /path/to/qbittorrent/appdata:/config \
139140
-v /path/to/downloads:/downloads `#optional` \
141+
--stop-timeout="10s" `#optional` \
140142
--restart unless-stopped \
141143
lscr.io/linuxserver/qbittorrent:latest
142144
```
@@ -157,6 +159,7 @@ Containers are configured using parameters passed at runtime (such as those abov
157159
| `-e TORRENTING_PORT=6881` | for changing the port of tcp/udp connection, see below for explanation |
158160
| `-v /config` | Contains all relevant configuration files. |
159161
| `-v /downloads` | Location of downloads on disk. |
162+
| `--stop-timeout=` | If you have a large number of torrents you may need to increase the container stop timeout to ensure a clean shutdown. |
160163
| `--read-only=true` | Run container with a read-only filesystem. Please [read the docs](https://docs.linuxserver.io/misc/read-only/). |
161164
| `--user=1000:1000` | Run container with a non-root user. Please [read the docs](https://docs.linuxserver.io/misc/non-root/). |
162165

readme-vars.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ param_env_vars:
3434
opt_param_usage_include_vols: true
3535
opt_param_volumes:
3636
- {vol_path: "/downloads", vol_host_path: "/path/to/downloads", desc: "Location of downloads on disk."}
37+
opt_custom_params:
38+
- {name: "stop-timeout", name_compose: "stop_grace_period", value: "10s", desc: "If you have a large number of torrents you may need to increase the container stop timeout to ensure a clean shutdown."}
3739
readonly_supported: true
3840
nonroot_supported: true
3941
# application setup block

0 commit comments

Comments
 (0)