The apache2 init script will start the server if run with 'reload' when the server is stopped, but /var/lib/init.d/started/apache2 symlink doesn't get created, so it thinks the service is stopped: $ /etc/init.d/apache2 stop * ERROR: "apache2" has not yet been started. $ /etc/init.d/apache2 reload * Reloading apache2 ... httpd not running, trying to start [ ok ] $ /etc/init.d/apache2 stop * ERROR: "apache2" has not yet been started. $ /etc/init.d/apache2 start * Starting apache2 ... httpd (pid 28712) already running [ ok ]
I just upgraded to the most recent ebuild of apache, -r12, and I'm having lots of trouble with the apache2 init.d script. The -r8 version was rock solid, but this one has trouble starting and stopping apache.
I have fixed this in 2.0.54-r13. Reload now checks to see if apache has been started and if not errors out.