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

Disable Solaris 11 SMF service at the end of postinstall script #2238

Closed
3 tasks
DFolchA opened this issue Jun 19, 2023 · 0 comments
Closed
3 tasks

Disable Solaris 11 SMF service at the end of postinstall script #2238

DFolchA opened this issue Jun 19, 2023 · 0 comments
Assignees
Labels

Comments

@DFolchA
Copy link
Contributor

DFolchA commented Jun 19, 2023

Wazuh version Install type Action performed Platform
4.4.4 Agent Install/Upgrade Solaris 11

We need to disable the SMF service that launches the post-installation tasks in Solaris 11, to avoid errors in the service log, /var/svc/log/site-wazuh-install:default.log

[ 2023 Jun  6 20:42:23 Leaving maintenance because clear requested. ]
[ 2023 Jun  6 20:42:23 Enabled. ]
[ 2023 Jun  6 20:42:23 Executing start method ("var/ossec/installation_scripts/postinstall.sh"). ]
pkg: Search performance is degraded.
Run 'pkg rebuild-index' to improve search speed.
user    ossec   pkg:/wazuh-agent@4.3.10-0
UX: userdel: ERROR: Cannot modify or delete a packaged account.
[ 2023 Jun  6 20:43:23 Method or service exit timed out.  Killing contract 122489. ]
[ 2023 Jun  6 20:43:23 Method "start" failed due to signal KILL. ]

These changes should replace this line in the current postinstall script:

https://github.com/wazuh/wazuh-packages/blob/8ab092751792cd8f508153713155ec96f33db82d/solaris/solaris11/postinstall.sh#LL63C1-L63C47

Validation

  • Install executes start directive of SMF service without errors
  • After reboot the service should not start and no errors in the log
  • Upgrade executes refresh directive of SMF service without errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants