-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Improve macOS service naming support #57646
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
Improve macOS service naming support #57646
Conversation
…r the module converts over to the macOS naming convention of com.saltstack.salt.master
Test failure isn't related to this PR. |
re-run ci/py3/ubuntu1604 |
re-run ubuntu1604 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. We need to get MacOS added to CI sometime soon.
@weswhet thank you for contribution! I'm good with this but since I'm not very familiar to MacOS specifics I want also @garethgreenaway to review this. |
Thanks @DmitryKuzmenko @garethgreenaway! |
@weswhet No worries. Can we get a changelog file with the changes documented? |
bd23d48
@garethgreenaway thanks! Added the changelog for this fix. |
another all green one for ya @garethgreenaway 💚 |
What does this PR do?
This PR makes it so if you specify a service on macOS by the naming convention similar to that of other platforms like
salt-minion
it will convert it over to its proper namecom.saltstack.salt.minion
. It will do the same forsalt-master
,salt-api
,salt-syndic
.What issues does this PR fix or reference?
Fixes:
I've seen multi times where people mention that documentation mentions restarting a service by running
salt * service.restart salt-minion
they do this on macOS not knowing that the naming convention is different. This will automatically handle it for them.Helps support the Formula PR here.
Previous Behavior
macOS would fail with
Service not found: salt-master
New Behavior
macOS will now know which service to look for and perform the correct action.
Merge requirements satisfied?
[NOTICE] Bug fixes or features added to Salt require tests.