Fixes #3528: Make the rudder-upgrade script validate the status of LDAP ...

...and PostgreSQL before running

To be merged in master

Ticket: http://www.rudder-project.org/redmine/issues/3528