From 49d832fb12f68de5b9375035dc5eabbe870904d4 Mon Sep 17 00:00:00 2001 From: David Runge Date: Mon, 26 Jun 2017 15:21:26 +0200 Subject: user/weechat.service: Moving TMUX_TMPDIR to XDG_RUNTIME_DIR, so no extra folder has to be created (leads to uncanny fails with tmux > 2.2). Starting after prosody and stunnel services, to (hopefully) prevent strange bug, encountered on first login of a bitlbee instance, accessing a local prosody instance through stunnel. --- user/weechat.service | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/user/weechat.service b/user/weechat.service index 3708739..12a5019 100644 --- a/user/weechat.service +++ b/user/weechat.service @@ -1,14 +1,12 @@ [Unit] Description=WeeChat in a separate tmux session -After=network.target local-fs.target +After=network.target local-fs.target prosody.service stunnel.service ConditionFileIsExecutable=/usr/bin/tmux ConditionFileIsExecutable=/usr/bin/weechat [Service] Type=forking -KillMode=control-group -Environment=TMUX_TMPDIR=%t/tmux -ExecStartPre=/usr/bin/mkdir -p $TMUX_TMPDIR +Environment=TMUX_TMPDIR=%t ExecStart=/usr/bin/tmux -L weechat new-session -d -s weechat -n weechat weechat ExecStop=/usr/bin/tmux -L weechat send-keys -t weechat:1 /quit Enter -- cgit v1.2.3