It has been reported that sometimes the daemon is launched before the
database get available, this patch tries to fix that:
- add an option to teach if the DB is distant;
- for mysql, run `mysqladmin ping'
(use a fake account, because not authorized for root!)
- for pgsl, run `postgresql status'
(pg_isready is not available before 9.3).
Reported by: Mike Brown <mike (at) skew.org>