[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

insserv + apache2 + bind9 = pain



If the Apache configuration needs DNS to start, Apache silently
and without logging anything fails to start in Squeeze.  This
used to work correctly under the old startup mechanism in Lenny.


In order to make Apache startup under insserv in cases where
the Apache config needs DNS information I eventually created
/etc/insserv/overrides/apache2 containing only:

#!/bin/sh
### BEGIN INIT INFO
# Provides:          apache2
# Required-Start:    $local_fs $remote_fs $network $syslog $named
# Required-Stop:     $local_fs $remote_fs $network $syslog $named
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# X-Interactive:     true
# Short-Description: Start/stop apache2 web server
### END INIT INFO

... and then ran "insserv" and rebooted.


Is there a simpler solution?


--Mike Bird


Reply to: