diff options
author | David Runge <dave@sleepmap.de> | 2017-06-26 15:21:26 +0200 |
---|---|---|
committer | David Runge <dave@sleepmap.de> | 2017-06-26 15:21:26 +0200 |
commit | 49d832fb12f68de5b9375035dc5eabbe870904d4 (patch) | |
tree | 3c0626cdd33b13ede7c8c13254be6f0a40224e2f /user | |
parent | f3017496a27bbf0498ae33c2ba61a9de76b0c131 (diff) | |
download | uenv-49d832fb12f68de5b9375035dc5eabbe870904d4.tar.gz uenv-49d832fb12f68de5b9375035dc5eabbe870904d4.tar.bz2 uenv-49d832fb12f68de5b9375035dc5eabbe870904d4.tar.xz uenv-49d832fb12f68de5b9375035dc5eabbe870904d4.zip |
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.
Diffstat (limited to 'user')
-rw-r--r-- | user/weechat.service | 6 |
1 files 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 |