The RPM installation of the Elastic Agent places a symlink in /etc/systemd/system to the service file at {prefix}/Agent/lib/systemd/system/elastic-agent.service. When {prefix} is on another mount, there is no guarantee that it will be mounted before systemd goes to read the service files on startup.
The Elastic Agent RPM should just install the service file at /etc/systemd/system always. /etc/systemd/system must be mounted correctly for systemd to even work so placing it in this location removes this edge case.
For confirmed bugs, please report:
- Version: All
- Operating System: Linux
- Steps to Reproduce:
- Create a VM or a host that has
/opt as a seperate mount
- Install the Elastic Agent RPM with
--prefix=/opt/Elastic
- Restart the host (Elastic Agent doesn't start)
The RPM installation of the Elastic Agent places a symlink in
/etc/systemd/systemto the service file at{prefix}/Agent/lib/systemd/system/elastic-agent.service. When{prefix}is on another mount, there is no guarantee that it will be mounted before systemd goes to read the service files on startup.The Elastic Agent RPM should just install the service file at
/etc/systemd/systemalways./etc/systemd/systemmust be mounted correctly for systemd to even work so placing it in this location removes this edge case.For confirmed bugs, please report:
/optas a seperate mount--prefix=/opt/Elastic