forked from kenXengineering/docker-transmission
-
Notifications
You must be signed in to change notification settings - Fork 0
/
transmission-daemon.service
26 lines (24 loc) · 964 Bytes
/
transmission-daemon.service
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
[Unit]
Description=transmission
Requires=docker.service openvpn.service
After=docker.service openvpn.service
[Service]
Restart=always
RestartSec=1m
StartLimitInterval=0
StartLimitBurst=0
ExecStartPre=sysctl -w net.core.rmem_max=4194304
ExecStartPre=sysctl -w net.core.wmem_max=1048576
ExecStartPre=-/storage/.kodi/addons/service.system.docker/bin/docker stop %p
ExecStartPre=-/storage/.kodi/addons/service.system.docker/bin/docker rm %p
ExecStartPre=-/storage/.kodi/addons/service.system.docker/bin/docker pull vhsw/transmission
ExecStart=/storage/.kodi/addons/service.system.docker/bin/docker run --rm \
--name %p \
-v /storage/downloads:/downloads \
-v /storage/transmission-daemon/config:/config \
-p 9091:9091 \
-p 45555:45555/tcp \
-p 45555:45555/udp \
vhsw/transmission
[Install]
WantedBy=multi-user.target