stop_apache attribute is not being respected #554
Labels
Feature Request
Enhancement to existing functionality or new functionality
hacktoberfest
An issue highlighted for the digital ocean Hacktoberfest Event
Cookbook version
8.0.0
Chef-client version
13.3.42
Platform Details
bento/ubuntu-14.04
Scenario:
I'm using the nagios cookbook to write out the various configuration files for my environment, but I have a few tweaks as I'm actually then loading those configs into Shinken running inside a Docker container. After updating the newest cookbook version while testing Chef 13 fixes, I'm hitting an issue where it tries to stop the apache service because I am using nginx, even though I have node['nagios']['server']['stop_apache'] set to false. Looking at the code there does not seem to be any guards around this:
This is problematic, as Apache processes are seen on the host, but running inside the container, so trying to stop Apache throws this error:
There are processes named 'apache2' running which do not match your pid file which are left untouched in the name of safety, Please review the situation by hand.
Expected Result:
The cookbook does not try to stop the Apache service.
Actual Result:
The text was updated successfully, but these errors were encountered: