apache not starting at boot time

Glenn Holmer shadowm at lyonlabs.org
Thu Oct 21 01:04:10 UTC 2010


Apache is installed and working properly, but doesn't start at boot
time. I used "bum" to enable it. The script in /etc/init.d does start
Apache properly if called from the command line after the system is up
and running. 

After boot, the command "service apache2 status" gives this output:
"Apache2 is NOT running."

The command "update-rc.d apache2 defaults" gives this output:
"System start/stop links for /etc/init.d/apache2 already exist."
(which is exactly what I see in /etc/rc?.d: S in 2-5 and K in 0,1,6)

I added logging statements with a timestamp to /etc/init.d/apache2 that
write to a file and got this output during boot:

starting apache2 init script at Wed Oct 20 18:43:49 CDT 2010
confdir: /etc/apache2
envvars: /etc/apache2/envvars
ENV: env -i LANG=C PATH=/usr/local/bin:/usr/bin:/bin
APACHE_HTTPD: /usr/sbin/apache2
loaded /lib/lsb/init-functions
loaded /etc/default/rcS
loaded /etc/default/apache2
calling stop function in /etc/init.d/apache2
calling apache_wait_stop()
checking for Apache PID: 
calling apache_stop()

So why is the stop function being called? Anybody got any ideas?

-- 
Glenn Holmer (Linux registered user #16682) http://www.lyonlabs.org
"The text is only a proposition." -Pierre Boulez







More information about the ubuntu-users mailing list