mirror of
https://github.com/linuxserver/docker-transmission.git
synced 2025-11-15 07:45:48 +01:00
14 lines
225 B
Plaintext
14 lines
225 B
Plaintext
#!/usr/bin/with-contenv bash
|
|
|
|
_term() {
|
|
echo "Caught SIGTERM signal!"
|
|
/usr/bin/transmission-remote --exit
|
|
}
|
|
|
|
trap _term SIGTERM
|
|
|
|
s6-setuidgid abc /usr/bin/transmission-daemon \
|
|
-g /config -c /watch -f &
|
|
|
|
wait
|