Revision 862f4dab
Added by Nicolas CHARLES over 7 years ago
rudder-agent/SOURCES/check-rudder-agent | ||
---|---|---|
# If there are more than 8 agent/executor processes, we should kill them, and purge the lock database
|
||
if [ ${NB_CF_PROCESS_RUNNING} -gt 8 ]; then
|
||
echo_n "WARNING: Too many instance of CFEngine processes running. Killing them, and purging the CFEngine lock database..."
|
||
echo "${CF_PROCESS_RUNNING}" | awk 'BEGIN { OFS=" "} {print $2 }' | xargs kill -9 || true
|
||
echo "${CF_PROCESS_RUNNING}" | awk 'BEGIN { OFS=" "} {print -$2 }' | xargs kill -9 || true
|
||
if [ "z${OS_FAMILY}" != "zAIX" ]; then
|
||
/etc/init.d/rudder-agent forcestop || true
|
||
fi
|
Also available in: Unified diff
Fixes #9622: Fusioninventory is not tracked by check-rudder-health