Skip to content

Commit fb52a17

Browse files
petechesBruno Sutic
authored andcommitted
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.
1 parent b495ea2 commit fb52a17

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/handle_tmux_automatic_start/systemd_enable.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,16 @@ template() {
1919
Documentation=man:tmux(1)
2020
2121
[Service]
22-
Type=oneshot
23-
RemainAfterExit=True
22+
Type=forking
2423
Environment=DISPLAY=:0
2524
ExecStart=/usr/bin/tmux ${systemd_tmux_server_start_cmd}
2625
2726
ExecStop=/home/peteches/.tmux/plugins/tmux-resurrect/scripts/save.sh
2827
ExecStop=/usr/bin/tmux kill-server
2928
KillMode=none
3029
30+
RestartSec=2
31+
3132
[Install]
3233
WantedBy=default.target
3334
EOF

0 commit comments

Comments
 (0)