aboutsummaryrefslogtreecommitdiffstats
path: root/user
diff options
context:
space:
mode:
Diffstat (limited to 'user')
-rw-r--r--user/tmux.service4
-rw-r--r--user/weechat.service6
2 files changed, 3 insertions, 7 deletions
diff --git a/user/tmux.service b/user/tmux.service
index fe0fe73..2522b1b 100644
--- a/user/tmux.service
+++ b/user/tmux.service
@@ -5,9 +5,7 @@ ConditionFileIsExecutable=/usr/bin/tmux
[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 new-session -s user -d
ExecStop=/usr/bin/tmux kill-session -t user
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