1 /* 2 * errcode.h 3 * Copyright (c) 2ndQuadrant, 2010-2020 4 * 5 * This program is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program. If not, see <http://www.gnu.org/licenses/>. 17 */ 18 19 #ifndef _ERRCODE_H_ 20 #define _ERRCODE_H_ 21 22 /* Exit return codes */ 23 24 #define SUCCESS 0 25 #define ERR_BAD_CONFIG 1 26 #define ERR_BAD_RSYNC 2 27 #define ERR_BAD_PIDFILE 3 28 #define ERR_NO_RESTART 4 29 #define ERR_LOCAL_COMMAND 5 30 #define ERR_DB_CONN 6 31 #define ERR_DB_QUERY 7 32 #define ERR_PROMOTION_FAIL 8 33 #define ERR_MONITORING_TIMEOUT 9 34 #define ERR_STR_OVERFLOW 10 35 #define ERR_FAILOVER_FAIL 11 36 #define ERR_BAD_SSH 12 37 #define ERR_SYS_FAILURE 13 38 #define ERR_BAD_BASEBACKUP 14 39 #define ERR_INTERNAL 15 40 #define ERR_MONITORING_FAIL 16 41 #define ERR_BAD_BACKUP_LABEL 17 42 #define ERR_SWITCHOVER_FAIL 18 43 #define ERR_BARMAN 19 44 #define ERR_REGISTRATION_SYNC 20 45 #define ERR_OUT_OF_MEMORY 21 46 #define ERR_SWITCHOVER_INCOMPLETE 22 47 #define ERR_FOLLOW_FAIL 23 48 #define ERR_REJOIN_FAIL 24 49 #define ERR_NODE_STATUS 25 50 #define ERR_REPMGRD_PAUSE 26 51 #define ERR_REPMGRD_SERVICE 27 52 53 #endif /* _ERRCODE_H_ */ 54