aboutsummaryrefslogtreecommitdiffstats
path: root/user/rtorrent.service
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2015-06-27 14:31:46 +0200
committerDavid Runge <dave@sleepmap.de>2015-06-27 14:31:46 +0200
commit9635835426ac7e0da36bd08386de962dce1900e4 (patch)
tree5215996b1f14cf48148fbe2891b1a861ee743f11 /user/rtorrent.service
parentf4bca2841a0755587336ad791fa9e958272a78f8 (diff)
downloaduenv-9635835426ac7e0da36bd08386de962dce1900e4.tar.gz
uenv-9635835426ac7e0da36bd08386de962dce1900e4.tar.bz2
uenv-9635835426ac7e0da36bd08386de962dce1900e4.tar.xz
uenv-9635835426ac7e0da36bd08386de962dce1900e4.zip
user/rtorrent.service: Creating TMUX_TMPDIR if not created yet.
Diffstat (limited to 'user/rtorrent.service')
-rw-r--r--user/rtorrent.service1
1 files changed, 1 insertions, 0 deletions
diff --git a/user/rtorrent.service b/user/rtorrent.service
index 1234407..4645db2 100644
--- a/user/rtorrent.service
+++ b/user/rtorrent.service
@@ -9,6 +9,7 @@ ConditionFileIsExecutable=/usr/bin/rtorrent
Type=forking
KillMode=none
Environment=TMUX_TMPDIR=/run/user/%U/tmux
+ExecStartPre=/usr/bin/mkdir -p $TMUX_TMPDIR
ExecStartPre=/usr/bin/mkdir -p /home/%u/Downloads/rtorrent/tmp
ExecStartPre=/usr/bin/mkdir -p /home/%u/Downloads/rtorrent/session
ExecStart=/usr/bin/tmux -L rt new-session -s rt -n rtorrent -d rtorrent