unitas/app-misc/tmuxservice/files/tmux.service

14 lines
258 B
SYSTEMD
Raw Normal View History

2019-04-13 17:56:27 +02:00
[Unit]
Description=Start tmux in detached session
[Service]
Type=forking
User=%I
ExecStart=/usr/bin/tmux new-session -s ts-%I -d $TMUX_CL_EXTEND
ExecStop=/usr/bin/tmux kill-session -t ts-%I
Restart=always
RestartSec=5s
[Install]
WantedBy=multi-user.target