Maybe there is a way to modify Keepalive to only restart aolserver after it verifies a connection to the db can be made?