Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SysV-style init scripts fail due to missing dependencies in RHEL9 #35708

Closed
chrisberkhout opened this issue Jun 7, 2023 · 2 comments
Closed

Comments

@chrisberkhout
Copy link
Contributor

The legacy service command still exists in RHEL9, and will attempt to use the SysV-style init script packaged in our RPM as /etc/init.d/auditbeat, but it will fail because that script depends on /etc/rc.d/init.d/functions, which is absent on recent versions of RHEL.

The service can be managed successfully via Systemd's systemctl command.

We should consider removing the SysV-style init script (if not required by other supported RPM-based distros), or modify it to provide graceful output rather than this error:

$ service auditbeat status
/etc/init.d/auditbeat: line 40: /etc/rc.d/init.d/functions: No such file or directory
/etc/init.d/auditbeat: line 44: status: command not found
/etc/init.d/auditbeat: line 90: status: command not found

Confirmed versions that have this issue:

Systemd adoption as default init system

Distro Version Date
CentOS 7 2014-07
RHEL 7 2014-06
SLES 12 2014-10
Amazon Linux 2 2018-06

https://en.wikipedia.org/wiki/Systemd#Adoption
https://aws.amazon.com/about-aws/whats-new/2018/06/announcing-amazon-linux-2-with-long-term-support/

Non-systemd RPM distributions in our support matrix

Centos 6

2020-11-30 End of life

https://endoflife.software/operating-systems/linux/centos
https://wiki.centos.org/FAQ/General#What_is_the_support_.27.27end_of_life.27.27_for_each_CentOS_release.3F

RHEL 6

2020-11-30 End of life
2024-06-30 End of extended life-cycle support

https://endoflife.software/operating-systems/linux/red-hat-enterprise-linux-rhel#6
https://access.redhat.com/support/policy/updates/errata

Amazon Linux

2018-11-19 Last release (Amazon Linux AMI 2018.03)
2020-12-31 End of life. End of standard support
2023-12-31 End of maintenance support period

https://aws.amazon.com/blogs/aws/update-on-amazon-linux-ami-end-of-life/
https://aws.amazon.com/amazon-linux-ami/

@elasticmachine
Copy link
Collaborator

Pinging @elastic/security-external-integrations (Team:Security-External Integrations)

@andrewkroh
Copy link
Member

andrewkroh commented Jun 7, 2023

Non-systemd RPM distributions in our support matrix
RHEL 6

In https://www.elastic.co/support/matrix#matrix_os it looks like for Beats that official support for CentOS/RHEL 6 ended with Beats 8.0.0.

But Amazon Linux (1) is still listed as supported. So we'll need to continue shipping those SysV files until that changes. We should drop Amazon Linux (1) from the matrix given the EOM date is approaching and EOL has long passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants