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 #5791: Implementation of a command line for rudder agent #1

Conversation

peckpeck
Copy link
Member

@peckpeck peckpeck force-pushed the dev_5791/implementation_of_a_command_line_for_rudder_agent branch 2 times, most recently from 25e26f9 to 70a3e3e Compare November 20, 2014 14:10
@@ -0,0 +1,3 @@
#!/bin/sh
# @description re-enable a disabled rudder-agent
rm -f /opt/rudder/etc/disable-agent
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't the enable command also check that cf-execd is running and start it if not? Otherwise, it's not really enabled, or it will be but only after some random delay...

Copy link
Member Author

Choose a reason for hiding this comment

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

It will be run after 5mn by cron if the user forgets to run it.
I think enable just mean enable and not run, but we can add a parameter for that.

@jooooooon
Copy link
Member

Aside from the comments above, this looks AWESOME!

@peckpeck peckpeck force-pushed the dev_5791/implementation_of_a_command_line_for_rudder_agent branch from 70a3e3e to c30431e Compare November 21, 2014 17:28
@peckpeck
Copy link
Member Author

@jooooooon PR updated

@peckpeck peckpeck closed this Nov 21, 2014
@peckpeck peckpeck reopened this Nov 21, 2014
echo " Available commands:"
for file in `cd "${BASEDIR}"; find . -type f -name "${role}-*" | sort`
do
doc=`grep "# @description" "${BASEDIR}/${file}" | sed -e "s/#[ \t]*@description[ \t]*//"`
Copy link
Member

Choose a reason for hiding this comment

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

I actually meant to change the regex in both places - also in the grep :)

@peckpeck peckpeck force-pushed the dev_5791/implementation_of_a_command_line_for_rudder_agent branch from c30431e to 8088292 Compare November 24, 2014 11:03
@peckpeck
Copy link
Member Author

Updated

jooooooon added a commit that referenced this pull request Nov 24, 2014
…and_line_for_rudder_agent

Fixes #5791: Implementation of a command line for rudder agent
@jooooooon jooooooon merged commit 7a5da46 into Normation:branches/rudder/3.0 Nov 24, 2014
@peckpeck peckpeck deleted the dev_5791/implementation_of_a_command_line_for_rudder_agent branch July 13, 2020 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants