aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2015-06-27 14:32:51 +0200
committerDavid Runge <dave@sleepmap.de>2015-06-27 14:32:51 +0200
commit7ad9c1df84ff9657ff55f94ea5acf546f59dbf69 (patch)
tree4d232d129efbf8fd708ae60adf9561124a38b6a0
parent9635835426ac7e0da36bd08386de962dce1900e4 (diff)
downloaduenv-7ad9c1df84ff9657ff55f94ea5acf546f59dbf69.tar.gz
uenv-7ad9c1df84ff9657ff55f94ea5acf546f59dbf69.tar.bz2
uenv-7ad9c1df84ff9657ff55f94ea5acf546f59dbf69.tar.xz
uenv-7ad9c1df84ff9657ff55f94ea5acf546f59dbf69.zip
user/tmux.service: Adding creation of TMUX_TMPDIR, if not created yet.
-rw-r--r--user/tmux.service1
1 files changed, 1 insertions, 0 deletions
diff --git a/user/tmux.service b/user/tmux.service
index 089e759..1143af5 100644
--- a/user/tmux.service
+++ b/user/tmux.service
@@ -7,6 +7,7 @@ ConditionFileIsExecutable=/usr/bin/tmux
Type=forking
KillMode=control-group
Environment=TMUX_TMPDIR=/run/user/%U/tmux
+ExecStartPre=/usr/bin/mkdir -p $TMUX_TMPDIR
ExecStart=/usr/bin/tmux new-session -s user -d
ExecStop=/usr/bin/tmux kill-session -t user