Skip to content

RPM installation should not use a symlink in /etc/systemd/system #13283

@blakerouse

Description

@blakerouse

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)

Metadata

Metadata

Assignees

Labels

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions