-
Notifications
You must be signed in to change notification settings - Fork 289
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
Centos 7 - not properly managing sensu-client service #855
Comments
I'm not able to reproduce this issue. Are you specifying the service provider elsewhere in your code? If you are, it could be attempting to use a different service provider instead of picking the correct one. Search for |
This is interesting. Running a debug trying to set the resource while the service is stopped:
The issue systems to be systemd reporting that it's active:
When looking at the status it shows:
Puppet seems to be treating the state "active (existed)" as running. Not sure why this is, but I'm guessing it's probably not related to this module. |
Reminds me of https://tickets.puppetlabs.com/browse/PUP-7163 though that is with the service being enabled, not the status. |
This could be it - https://tickets.puppetlabs.com/browse/PUP-6759 You could try upgrading puppet to the latest v4 version. Going to close this since it's not related to this module. Let us know if the upgrade works! |
It seems to have something to do with the mix of systemd and the old init script. If I restart the system, sensu-client starts fine. If I stop it with systemd, it will properly stop it and puppet will restart it. If I stop it with the init script: Thanks for the help. |
Description of problem
Use this module on CentOS 7 servers
If the sensu-client service isn't running, it will not start the process. We have the same config on our CentOS 6 systems and this works fine.
sensu-client service should be started if it's not running.
Test sensu-client service management on CentOS7
Command used and debugging output
master based.
Platform and version information
Anything else to add that you think will be helpful?
The text was updated successfully, but these errors were encountered: