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

Wazuh-Indexer service script not executable on SysV init #602

Open
juliancnn opened this issue Dec 19, 2024 · 0 comments
Open

Wazuh-Indexer service script not executable on SysV init #602

juliancnn opened this issue Dec 19, 2024 · 0 comments
Labels
level/task Task issue type/bug Bug issue

Comments

@juliancnn
Copy link
Member

Related issues:

Description

When Wazuh-Indexer is installed on systems that do not use systemd, the service script is not recognized due to missing execute permissions on the /etc/init.d/wazuh-indexer file. As a result, commands like service wazuh-indexer start or service wazuh-indexer status report that wazuh-indexer is an unrecognized service.

Current Behavior:

# service wazuh-indexer start
wazuh-indexer: unrecognized service

# service --status-all
...
[ + ] wazuh-server
...

After manually adding execute permissions:

# chmod +x /etc/init.d/wazuh-indexer
# service --status-all
...
[ + ] wazuh-indexer
[ + ] wazuh-server
...

This confirms that the issue lies in the file permissions assigned at installation time.

Objective

Ensure that the /etc/init.d/wazuh-indexer script is installed with executable permissions so that the service command can properly list and manage the Wazuh-Indexer service on non-systemd systems.

Tasks

  1. Review Packaging Scripts:

    • Check the Debian and RPM packaging scripts used to install Wazuh-Indexer.
    • Identify where /etc/init.d/wazuh-indexer is copied or created.
  2. Set Executable Permissions:

    • Modify the packaging process to ensure chmod +x /etc/init.d/wazuh-indexer is applied post-installation.
    • Confirm that this change does not affect systemd-based installs, where systemd units are primarily used.
  3. Testing:

    • Rebuild Wazuh-Indexer packages with the updated packaging scripts.
    • Install on a non-systemd environment (e.g., SysVinit or Upstart-based system).
    • Verify that service wazuh-indexer start, status, and other commands now work as intended.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
level/task Task issue type/bug Bug issue
Projects
Status: Backlog
Development

No branches or pull requests

1 participant