blob: 2522b1b196b6a8b4168b9113ebd4599235740bf5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
[Unit]
Description=Start tmux in detached session
After=network.target local-fs.target
ConditionFileIsExecutable=/usr/bin/tmux
[Service]
Type=forking
Environment=TMUX_TMPDIR=%t
ExecStart=/usr/bin/tmux new-session -s user -d
ExecStop=/usr/bin/tmux kill-session -t user
[Install]
WantedBy=default.target
|