Revision 4a779601
Added by Benoît PECCATTE about 6 years ago
share/commands/agent-check | ||
---|---|---|
# Get the value of rudder-agent run interval from file /var/rudder/cfengine-community/inputs/run_interval
|
||
if [ -f "${CFE_DIR}/inputs/run_interval" ]; then
|
||
RUN_INTERVAL=`cat "${CFE_DIR}/inputs/run_interval"`
|
||
# If the value is not a number, reset to 5
|
||
if ! test "${RUN_INTERVAL}" -gt 0 2>/dev/null
|
||
then
|
||
RUN_INTERVAL=5
|
||
fi
|
||
else
|
||
# File does not exists, use default value 5
|
||
RUN_INTERVAL=5
|
Also available in: Unified diff
Fixes #11309: rudder server refusing nodes after an error in check-rudder-agent