Fix systemd unit startup hanging

This commit is contained in:
2025-01-23 18:57:17 +01:00
parent 85bb13f959
commit 63bbc03007
4 changed files with 14 additions and 10 deletions
+2 -2
View File
@@ -16,7 +16,7 @@ A runner for Gitea based on act.}
Name: gitea-act-runner
Version: 0.2.10
Release: %autorelease -b 9
Release: %autorelease -b 11
Summary: A runner for Gitea based on act.
%global act_runner_service %{name}.service
@@ -94,9 +94,9 @@ fi
%post %{dockerd_rootless}
%systemd_user_post %{act_runner_rootless_service} %{dockerd_rootless_service}
if [ $1 -eq 1 ] || [ ! -d /home/%{runner_user_rootless}/act_runner ]; then
loginctl enable-linger %{runner_user_rootless}
echo ' INFO Please read README.%{rootless}-%{dockerd}.md to finish the installation'
fi
loginctl enable-linger %{runner_user_rootless}
%preun %{dockerd_rootless}
%systemd_user_preun %{dockerd_rootless_service} %{act_runner_rootless_service}