Switched to forking to better represent server nature of tmux.

- Also added RestartSec option to fix minor issues with restarts trying to
  start the server before it had fully shutdown.
pull/17/head
Pete Peteches McCabe 2015-11-30 08:09:48 +00:00 committed by Bruno Sutic
parent b495ea2912
commit fb52a173b8
No known key found for this signature in database
GPG Key ID: CAFA7B1B2914ED81
1 changed files with 3 additions and 2 deletions

View File

@ -19,8 +19,7 @@ template() {
Documentation=man:tmux(1)
[Service]
Type=oneshot
RemainAfterExit=True
Type=forking
Environment=DISPLAY=:0
ExecStart=/usr/bin/tmux ${systemd_tmux_server_start_cmd}
@ -28,6 +27,8 @@ template() {
ExecStop=/usr/bin/tmux kill-server
KillMode=none
RestartSec=2
[Install]
WantedBy=default.target
EOF