Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 474650

Summary: www-servers/apache-2.4.4-r3: /etc/conf.d/apache2 PIDFILE= incorrect
Product: Gentoo Linux Reporter: Scott Miller <scottlinux>
Component: [OLD] ServerAssignee: Patrick Lauer <patrick>
Status: RESOLVED INVALID    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Scott Miller 2013-06-25 00:51:13 UTC
Apache 2.4.4 and 2.4.4-r3 on gentoo are unable to start and stop with init scripts. Apache starts, but then is unable to be stopped properly. The only way to stop apache is to kill the process.

The problem appears to stem from the file /etc/conf.d/apache2

# PID file
#PIDFILE=/run/apache2.pid

should be:

PIDFILE=/var/run/apache2.pid


Reproducible: Always

Steps to Reproduce:
1. emerge apache 2.4.4 or 2.4.4-r3
2. sudo /etc/init.d/apache2 start or stop  - broken
3. have to kill apache processes to stop
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2013-06-25 12:24:02 UTC
/var/run usually is a symlink pointing to /run so there's nothing wrong with the conf.d file. Also the variable being commented in the conf.d file is correct as the init script has a sane fallback value (which is "/run/apache2.pid").

This only is a problem when you still have /var/run as a separate directory. In this case you might want to adjust your conf.d file accordingly.
Comment 2 Scott Miller 2013-06-25 16:14:30 UTC
Thank you,