mirror of
https://github.com/tmux-plugins/tmux-continuum.git
synced 2024-10-31 20:58:47 +00:00
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:
parent
b495ea2912
commit
fb52a173b8
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user