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

disabled_services should be stopped too #224

Closed
igalic opened this issue Sep 11, 2019 · 1 comment
Closed

disabled_services should be stopped too #224

igalic opened this issue Sep 11, 2019 · 1 comment
Assignees

Comments

@igalic
Copy link

igalic commented Sep 11, 2019

Describe the bug

Disabling a service does not guarantee that the service will be stopped.
In the case of systemd it even leads to inconsistencies that need to be addressed in the service provider, see: https://github.com/puppetlabs/puppet/blob/5.5.x/lib/puppet/provider/service/systemd.rb#L37-L48

# This helper ensures that the enable state cache is always reset
# after a systemctl enable operation. A particular service state is not guaranteed
# after such an operation, so the cache must be emptied to prevent inconsistencies
# in the provider's believed state of the service and the actual state.

Expected behavior

I would expect this module to stop disabled services.

Actual behavior

Services are left running until a reboot of the machine.

@mcgege
Copy link
Member

mcgege commented Sep 11, 2019

fixed with #226

@mcgege mcgege closed this as completed Sep 11, 2019
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

No branches or pull requests

2 participants