Skip to content

Commit 1116446

Browse files
authored
Merge pull request #43 from linuxserver/stop
Stop transmission cleanly, fix cron start
2 parents 47aef25 + 1f01fff commit 1116446

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ Below are the instructions for updating containers:
186186

187187
## Versions
188188

189+
* **22.02.19:** - Catch term and clean exit.
189190
* **07.02.19:** - Add pipeline logic and multi arch.
190191
* **15.08.18:** - Rebase to alpine linux 3.8.
191192
* **12.02.18:** - Pull transmission from edge repo.

readme-vars.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ app_setup_block: |
7373
7474
# changelog
7575
changelogs:
76+
77+
- { date: "22.02.19:", desc: "Catch term and clean exit." }
7678
- { date: "07.02.19:", desc: "Add pipeline logic and multi arch." }
7779
- { date: "15.08.18:", desc: "Rebase to alpine linux 3.8." }
7880
- { date: "12.02.18:", desc: "Pull transmission from edge repo." }
@@ -90,3 +92,4 @@ changelogs:
9092
- { date: "09.08.16:", desc: "Rebase to alpine linux." }
9193
- { date: "06.12.15:", desc: "Separate mapping for watch folder." }
9294
- { date: "16.11.15:", desc: "Initial Release." }
95+

root/etc/services.d/cron/run

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
#!/usr/bin/with-contenv bash
22

3-
/usr/sbin/crond -f -S -l 0 -c /etc/crontabs
3+
exec \
4+
/usr/sbin/crond -f -S -l 0 -c /etc/crontabs
Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
#!/usr/bin/with-contenv bash
22

3-
exec \
3+
_term() {
4+
echo "Caught SIGTERM signal!"
5+
/usr/bin/transmission-remote --exit
6+
}
7+
8+
trap _term SIGTERM
9+
410
s6-setuidgid abc /usr/bin/transmission-daemon \
5-
-g /config -c /watch -f
11+
-g /config -c /watch -f &
12+
13+
wait

0 commit comments

Comments
 (0)