From c6b49021fe7e260046ee7c598e35d61d00b750aa Mon Sep 17 00:00:00 2001 From: Josef Ridky Date: Wed, 4 Mar 2026 11:53:11 +0100 Subject: [PATCH] Resolves: RHEL-72212 - add tmux service Signed-off-by: Josef Ridky --- tmux.spec | 9 ++++++++- tmux@.service | 13 +++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 tmux@.service diff --git a/tmux.spec b/tmux.spec index 7feded6..6f8a534 100644 --- a/tmux.spec +++ b/tmux.spec @@ -2,7 +2,7 @@ Name: tmux Version: 3.2a -Release: 5%{?dist} +Release: 6%{?dist} Summary: A terminal multiplexer # Most of the source is ISC licensed; some of the files in compat/ are 2 and @@ -12,6 +12,8 @@ URL: https://tmux.github.io/ Source0: https://github.com/tmux/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz # Examples has been removed - so include the bash_completion here Source1: bash_completion_tmux.sh +Source2: tmux@.service + Patch1: 0001-Fix-memory-leaks.patch Patch2: 0002-Close-file-stream-on-error.patch Patch3: 0003-Fix-memory-leak-with-time_format.patch @@ -54,6 +56,7 @@ autoreconf -f -i -v %make_install # bash completion install -Dpm 644 %{SOURCE1} %{buildroot}%{_datadir}/bash-completion/completions/tmux +install -Dpm 644 %{SOURCE2} %{buildroot}%{_unitdir}/tmux@.service %post if [ "$1" = 1 ]; then @@ -80,8 +83,12 @@ fi %{_bindir}/tmux %{_mandir}/man1/tmux.1.* %{_datadir}/bash-completion/completions/tmux +%{_unitdir}/tmux@.service %changelog +* Wed Mar 04 2026 Josef Ridky - 3.2a-6 +- Add tmux@.service (RHEL-72212) + * Mon Apr 10 2023 Josh Boyer - 3.2a-5 - Backport a number of memory leak fixes Resolves: rhbz#1938885 diff --git a/tmux@.service b/tmux@.service new file mode 100644 index 0000000..2e631eb --- /dev/null +++ b/tmux@.service @@ -0,0 +1,13 @@ +[Unit] +Description=tmux session for user %I +After=graphical-session.target + +[Service] +Type=forking +User=%I +ExecStart=/usr/bin/tmux new-session -s %I -d +ExecStop=/usr/bin/tmux kill-session -t %I +WorkingDirectory=~ + +[Install] +WantedBy=multi-user.target