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

Solaris 11 smf Manifest points to deleted script #2313

Closed
ghdangang opened this issue Jul 25, 2023 · 1 comment
Closed

Solaris 11 smf Manifest points to deleted script #2313

ghdangang opened this issue Jul 25, 2023 · 1 comment
Assignees
Labels
reporter/community Issue reported by the community

Comments

@ghdangang
Copy link

ghdangang commented Jul 25, 2023

Wazuh 4.4.5 Install Agent Action Rewrite smf manifest Sparc
"v4.4.5"-"40413" WAZUH_TYPE="agent" Install/ Solaris 11.4.53.132.2

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>

@jnasselle jnasselle self-assigned this Jul 31, 2023
@jnasselle jnasselle added the reporter/community Issue reported by the community label Jul 31, 2023
@jnasselle
Copy link
Member

Hi @ghdangang ,

Thanks for reporting this bug. This behavior was currently reported in #2238 and treated there.

Closing this issue as a duplicate.
Regards,
Nico

@jnasselle jnasselle closed this as not planned Won't fix, can't repro, duplicate, stale Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
reporter/community Issue reported by the community
Projects
None yet
Development

No branches or pull requests

2 participants