You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 startwazuh-indexer: unrecognized service
# service --status-all...[ + ] 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
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.
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.
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.
The text was updated successfully, but these errors were encountered:
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 likeservice wazuh-indexer start
orservice wazuh-indexer status
report thatwazuh-indexer
is an unrecognized service.Current Behavior:
After manually adding execute permissions:
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 theservice
command can properly list and manage the Wazuh-Indexer service on non-systemd systems.Tasks
Review Packaging Scripts:
/etc/init.d/wazuh-indexer
is copied or created.Set Executable Permissions:
chmod +x /etc/init.d/wazuh-indexer
is applied post-installation.Testing:
service wazuh-indexer start
,status
, and other commands now work as intended.The text was updated successfully, but these errors were encountered: