Fatal-error at installation for RHEL 8 and 9 because of missing /etc/init.d/gitlab-runner
Summary
Gitlab-Runner-installation fails for RHEL / AlmaLinux 8 and 9 at /usr/share/gitlab-runner/post-install
because the installer uses
parts which are only available in the initscripts-package which is not installed by default since RHEL 8.
Steps to reproduce
- Install RHEL / AlmaLinux 8 or 9
curl --location https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.rpm.sh | bash
dnf install -y gitlab-runner
Actual behavior
GitLab Runner: detected user gitlab-runner
Runtime platform arch=amd64 os=linux pid=597 revision=436955cb version=15.11.0
gitlab-runner: "service" failed: exec: "service": executable file not found in $PATH
Runtime platform arch=amd64 os=linux pid=612 revision=436955cb version=15.11.0
gitlab-ci-multi-runner: "service" failed: exec: "service": executable file not found in $PATH
Runtime platform arch=amd64 os=linux pid=656 revision=436955cb version=15.11.0
FATAL: Failed to install gitlab-runner: open /etc/init.d/gitlab-runner: no such file or directory
Expected behavior
Successful installation
Relevant logs and/or screenshots
None
Environment description
Vanilla RHEL / AlmaLinux 9.2
Used GitLab Runner version
15.6.0-1
Possible fixes
Add "initscripts" to dependencies for package gitlab-runner