repmgr: exit with nonzero status on obvious errors

This commit is contained in:
Charles Duffy
2011-02-06 15:01:40 -06:00
committed by Greg Smith
parent 8d2aff558d
commit f74b806e4f
2 changed files with 85 additions and 74 deletions

View File

@@ -45,6 +45,13 @@
#define DEFAULT_DBNAME "postgres"
#define DEFAULT_REPMGR_SCHEMA_PREFIX "repmgr_"
/* Exit return code */
#define ERR_BAD_CONFIG 1
#define ERR_BAD_RSYNC 2
#define ERR_STOP_BACKUP 3
#define ERR_NO_RESTART 4
/* Run time options type */
typedef struct {