cerndb / dbod-core

DB On Demand management infrastructure core library
GNU General Public License v3.0
5 stars 1 forks source link

PG::is_running expect wrong values from pg_ctl #47

Closed icot closed 7 years ago

icot commented 8 years ago

The call to pg_ctl returns 0 when is successful (plus the PID on stdout), and a numeric value in the case of error

icot commented 8 years ago

The same happens in external calls to /etc/init.d/pgsql_<entity> scripts. Failure and success return values are inverted

icot commented 8 years ago

Fixed in scripts branch.