Check that the database dir is writable
Use infinite loop rather than respawn