aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--user/weechat.service6
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