Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #11921: Agent process detection is wrong in rudder agent check on AIX #147

Conversation

amousset
Copy link
Member

@amousset amousset commented Jan 4, 2018

@@ -94,7 +94,7 @@ check_and_fix_cfengine_processes() {
fi

# List cf-serverd processes running
CF_SERVER_RUNNING=`${PS_COMMAND} | sed -ne "\\%${CFE_BIN_DIR}/\\(cf-serverd\\)%p" | cat`
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this one works on AIX but I wanted to stay consistent

@@ -80,7 +80,7 @@ check_and_fix_cfengine_processes() {
fi

# List the CFEngine processes running
CF_PROCESS_RUNNING=`${PS_COMMAND} | sed -ne "\\%${CFE_BIN_DIR}/\\(cf-execd\\|cf-agent\\)%p" | cat`
CF_PROCESS_RUNNING=`${PS_COMMAND} | grep -E "${CFE_BIN_DIR}/cf-(agent|execd)" | cat`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we used to have egrep "${CFE_BIN_DIR}/(cf-execd|cf-agent)"
see https://github.com/Normation/rudder-packages/pull/796/files

@Normation-Quality-Assistant

This PR is not mergeable to upper versions.
Since it is "Ready for merge" you must merge it by yourself using the following command:
rudder-dev merge https://github.com/Normation/rudder-agent/pull/147
-- Your faithful QA

@amousset
Copy link
Member Author

amousset commented Jan 4, 2018

OK, merging this PR

@amousset amousset merged commit 1d16c69 into Normation:branches/rudder/4.1 Jan 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants