-
Notifications
You must be signed in to change notification settings - Fork 24.1k
Support for simpleinit-msb init system #19231
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
Conversation
|
so the service module is being broken up into component modules in hopes of deprecating it soon, so I am remiss on adding this to it. I would resubmit as it's own module and also add the init system to fact detection to set the ansible_service_mgr variable. |
|
I see the point. I just thought it might be less work for initial support, since it's not really that complicated change and most of patterns and code are re-used within the |
7d8d9c3 to
98c6f06
Compare
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.
CI failure due to PEP 8 issue:
2017-01-31 19:29:56 ERROR: PEP 8: lib/ansible/modules/system/service.py:442:161: E501 line too long (161 > 160 characters) (current)
|
@mattclay thanks, corrected. |
|
The test |
3a17445 to
a830294
Compare
|
CI was failing due to infrastructure issues bring up MacOS images (unrelated to this change) I've rescheduled the CI |
|
@vaygr Feature freeze for Ansible 2.3 was a number of weeks ago |
|
Oh, I'm too late to remind then. Hopefully it'll get its way into 2.4 with above mentioned refactoring or without, because init system support is quite important for full system support. |
a830294 to
5b5c5af
Compare
|
Bumping for inclusion in 2.4! |
|
@vaygr my initial comment still stands, we are not adding functionality to the existing service module, so this should be submitted as a separate one. |
|
@bcoca oh, it wasn't clear in your first comment that it's a strict requirement now. I'll see what I can do. |
|
I'm guessing this should be closed and a new PR raised for the new format? needs_info |
|
@vaygr This pullrequest is waiting for your response. Please respond or the pullrequest will be closed. |
|
@vaygr You have not responded to information requests in this pullrequest so we will assume it no longer affects you. If you are still interested in this, please create a new pullrequest with the requested information. |
ISSUE TYPE
Feature Pull Request
COMPONENT NAME
lib/ansible/modules/system/service.pyANSIBLE VERSION
2.2.0.0SUMMARY
After package management it's the last of 2 main parts of any distro -- an init system.
This adds full support for
simpleinit-msbused in Source Mage.The init system is very simple and unique to Source Mage, based on the Linux Boot Scripts design pattern.
It uses
telinitbinary to manage init scripts in the system, move them between runlevels, enable/disable, and even install and remove them:I've also managed to add some protection for non-existing scripts inside Ansible code.