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 #4997: check-rudder-agent can now handle missing run_interval file #357

Conversation

VinceMacBuche
Copy link
Member

@jooooooon
Copy link
Member

I don't think that this is a good approach. Creating a file in the inputs directory is at best a temporary workaround, and we know that on the first cf-agent run, it will get removed.

I think this should be fixed directly at the source: in the check-rudder-agent script. Something like "if the file exists, read in the interval, if not assume interval=5".

@VinceMacBuche, can you rework this please?

@VinceMacBuche VinceMacBuche changed the title Fixes #4997: Create run_interval file if it does not exists when upgrading Fixes #4997: check-rudder-agent can now handle missing run_interval file Jun 11, 2014
@VinceMacBuche
Copy link
Member Author

Ok ! I updated the pull request! now check-rudder-agent handle the missing file

# File does not exists, use default value 5
RUN_INTERVAL=5
fi

RUN_INTERVAL=`cat /var/rudder/cfengine-community/inputs/run_interval`
Copy link
Member

Choose a reason for hiding this comment

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

You need to remove this line...

Copy link
Member Author

Choose a reason for hiding this comment

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

me so dumb ... removed the line

jooooooon added a commit that referenced this pull request Jun 11, 2014
…_not_exists

Fixes #4997: check-rudder-agent can now handle missing run_interval file
@jooooooon jooooooon merged commit af697f5 into Normation:branches/rudder/2.10 Jun 11, 2014
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