blob: 12a50190bf094f0b0fe379a43d794267bc1a7123 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
[Unit]
Description=WeeChat in a separate tmux session
After=network.target local-fs.target prosody.service stunnel.service
ConditionFileIsExecutable=/usr/bin/tmux
ConditionFileIsExecutable=/usr/bin/weechat
[Service]
Type=forking
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
[Install]
WantedBy=default.target
|