yavdr-ansible/roles/yavdr-desktop/templates/systemd/user/tmux.service.j2
2018-02-12 08:48:12 +01:00

13 lines
253 B
Django/Jinja

[Unit]
Description=Start tmux in detached session
[Service]
EnvironmentFile=-%h/.session-env
Type=forking
ExecStart=/usr/bin/tmux new-session -s use-session -d
ExecStop=/usr/bin/tmux kill-session -t %u
Restart=always
[Install]
WantedBy=default.target