Commit 04504e1c authored by Christoph Berg's avatar Christoph Berg

Restore the proper exit code lost in revision 1437

parent b9800b61
......@@ -438,7 +438,7 @@ if( $> != $info{'owneruid'} ) {
$pg_ctl = get_program_path 'pg_ctl', $version;
if ($action =~ /^(start|stop|restart|reload|status|promote)$/) {
&$action;
exit &$action;
} else {
error 'Invalid action (must be one of: start stop restart reload status promote)';
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment