apache2 icon indicating copy to clipboard operation
apache2 copied to clipboard

PIDFILE is not rendered in /etc/sysconfig/httpd

Open limitusus opened this issue 4 years ago • 0 comments

:ghost: Brief Description

Template variable apache_pid_file is not passed from the install resource. https://github.com/sous-chefs/apache2/blob/v8.5.0/templates/etc-sysconfig-httpd.erb#L31 always renders like:

PIDFILE=

install resource does not pass apache_pid_file template variable to the template. https://github.com/sous-chefs/apache2/blob/v8.5.0/resources/install.rb#L242-L246

:pancakes: Cookbook version

8.5.0

:woman_cook: Chef-Infra Version

All

:tophat: Platform details

platform_family?('rhel', 'amazon', 'fedora', 'suse')

In my case, AmazonLinux 1 affected. /etc/init.d/httpd start could not set a correct PID file path as PIDFILE is empty, and failed to execute daemon helper function.

Steps To Reproduce

Render /etc/sysconfig/httpd with install resource

:police_car: Expected behavior

apache_pid_file (from helpers) should be filled in the template.

:heavy_plus_sign: Additional context

N/A

limitusus avatar Sep 29 '20 17:09 limitusus