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
For whatever reasons the installer removes this directory
/var/ossec/installation_scripts
root@sol11:~# cd /var/ossec/
root@sol11:/var/ossec# ls installation_scripts/postinstall.sh
installation_scripts/postinstall.sh: No such file or directory
root@sol11:/var/ossec# ls installation_scripts/
installation_scripts/: No such file or directory
This results in the smf not restarting wazuh after reboot or smf restarts
Also the var/ossec/installation_scripts/postinstall.sh does not start or stop the wazuh agent
For whatever reasons the installer removes this directory
/var/ossec/installation_scripts
root@sol11:~# cd /var/ossec/
root@sol11:/var/ossec# ls installation_scripts/postinstall.sh
installation_scripts/postinstall.sh: No such file or directory
root@sol11:/var/ossec# ls installation_scripts/
installation_scripts/: No such file or directory
This results in the smf not restarting wazuh after reboot or smf restarts
Also the var/ossec/installation_scripts/postinstall.sh does not start or stop the wazuh agent
I have written a new manifest that worked for me
cat wazuh-install.xml
<service_bundle type="manifest" name="site/wazuh-install">
<service_fmri value="svc:/milestone/multi-user"/>
<service_fmri value="svc:/milestone/multi-user-server" />
<exec_method timeout_seconds="60" type="method" name="refresh"
exec="var/ossec/bin/wazuh-control restart"/>
<exec_method timeout_seconds="60" type="method" name="start"
exec="var/ossec/bin/wazuh-control start"/>
<exec_method timeout_seconds="60" type="method" name="stop"
exec="var/ossec/bin/wazuh-control stop"/>
<property_group type="framework" name="startd">
</property_group>
</service_bundle>
The text was updated successfully, but these errors were encountered: