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

14 lines
258 B
SYSTEMD
Raw Normal View History

2020-05-25 08:58:20 +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