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.
This commit is contained in:
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

View File

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