summarylogtreecommitdiffstats
path: root/tmux.service
blob: 4dc3f056a7774b7ce9820db63ed08ebea3d8f3a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
[Unit]
Description=Dedicated tmux server for a user
Documentation=man:tmux(1)

[Service]
Type=forking
WorkingDirectory=%h
ExecStart=/usr/bin/tmux -2u new-session -s %u -d
ExecStop=/usr/bin/tmux kill-session -t %u
Restart=always

[Install]
WantedBy=multi-user.target