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

(PUP-1751) Fix service provider on Suse to handle boot services. #2447

Merged
merged 2 commits into from
Mar 19, 2014

Conversation

peterhuene
Copy link
Contributor

The current implementation passes the '--check' flag to chkconfig for
Suse OS family. This causes chkconfig to exit with 0 when the service is
enabled and non-zero when the service is disabled or non-existent.

However, for boot services (services that start with 'boot.'), chkconfig
is returning 0 even if the service is disabled or non-existent.

The fix is to stop passing the '--check' flag to chkconfig and instead
parse the output looking for '<service_name> on' to see if the service
is enabled.

Matteo Cerutti and others added 2 commits March 18, 2014 15:03
The current implementation passes the '--check' flag to chkconfig for
Suse OS family. This causes chkconfig to exit with 0 when the service is
enabled and non-zero when the service is disabled or non-existent.

However, for boot services (services that start with 'boot.'), chkconfig
is returning 0 even if the service is disabled or non-existent.

The fix is to stop passing the '--check' flag to chkconfig and instead
parse the output looking for '<service_name>  on' to see if the service
is enabled.
Add spec examples for when a service is enabled, disabled, or
non-existent on a Suse OS.

Remove example that expected the '--check' flag for Suse, as it is no
longer passed.
@puppetcla
Copy link

CLA signed by all contributors.

peterhuene added a commit that referenced this pull request Mar 19, 2014
(PUP-1751) Fix service provider on Suse to handle boot services.
@peterhuene peterhuene merged commit 9f316ef into puppetlabs:master Mar 19, 2014
@peterhuene peterhuene deleted the pup/1751 branch March 19, 2014 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants