Skip to content

[BUG] Systemd service cannot be enabled under al2023 without chkconfig installed #1107

@f-galland

Description

@f-galland

Description

When trying to enable the wazuh-indexer.service unit with:

systemctl enable wazuh-indexer

The following error is output:

[root@ip-172-31-41-61 ~]# systemctl enable wazuh-indexer
Synchronizing state of wazuh-indexer.service with SysV service script with /usr/lib/systemd/systemd-sysv-install.
Executing: /usr/lib/systemd/systemd-sysv-install enable wazuh-indexer
Failed to execute /usr/lib/systemd/systemd-sysv-install: No such file or directory

This behavior was already fixed in other components' packages:

but we don't currently have provisions for handling this case.

We need to investigate the matter taking into account the possibility of starting the older sysv service under non-systemd environments (docker, etc.).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions