-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
service.status is broken under FreeBSD #26062
Comments
it seems that replacing: return not __salt__['cmd.retcode'](cmd, python_shell=False) with: return not __salt__['cmd.retcode'](cmd, python_shell=False, ignore_retcode=True) in the status function of modules/freebsdservice.py fixes the problem, although I'm not sure if that's a proper solution .. |
Also, maybe related to #24783 |
Check out #23435 also, might want to merge any info into there. |
There is a current bug in salt freebsd service. Please see [this](saltstack/salt#26062).
I'm not sure how this was ever "broken". It was returning the correct result. At worst it was just logging spurious errors. |
The spurious logging is removed by #33294. |
Hello,
I think there is an issue with the service module under FreeBSD.
If PostgreSQL is not running on sandbox and that I execute (on the master):
it works as expected, it returns (on the master):
sandbox: False
However in the sandbox logs (the minion) the command returns with an ERROR:
The problem is that /usr/sbin/service exits 0 only if the service is running and >0 otherwise:
I guess that some Salt code is checking for the exit status of the command and threats != 0 as an error ...
(Note that it breaks the service state too, it turns in an infinite loop)
The text was updated successfully, but these errors were encountered: