Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 474650 - www-servers/apache-2.4.4-r3: /etc/conf.d/apache2 PIDFILE= incorrect
Summary: www-servers/apache-2.4.4-r3: /etc/conf.d/apache2 PIDFILE= incorrect
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Patrick Lauer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-25 00:51 UTC by Scott Miller
Modified: 2013-06-25 16:14 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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,