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
/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.
Thank you,