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

tools: Add option to frr-reload to specify alternate logfile #15471

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mwinter-osr
Copy link
Member

Adding option --logfile to specify a different logfile instead of the default /var/log/frr/frr-reload.log

This solves the issue with multiple FRR instances running in different network namespaces to use different
logfiles

Signed-off-by: Martin Winter [email protected]

@@ -1921,11 +1927,11 @@ def compare_context_objects(newconf, running):
)

elif args.reload:
if not os.path.isdir("/var/log/frr/"):
os.makedirs("/var/log/frr/", mode=0o0755)
if not os.path.isdir(os.path.dirname(args.logfile)):
Copy link
Contributor

Choose a reason for hiding this comment

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

Please update the comment at the top of the block to read

# For --reload log to --logfile (default: "/var/log/frr/frr-reload.log")

Copy link
Member Author

Choose a reason for hiding this comment

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

done

Adding option --logfile to specify a different logfile instead of
the default /var/log/frr/frr-reload.log

Signed-off-by: Martin Winter <[email protected]>
@RodrigoMNardi
Copy link
Contributor

ci:retry

Copy link

This PR is stale because it has been open 180 days with no activity. Comment or remove the autoclose label in order to avoid having this PR closed.

@choppsv1
Copy link
Contributor

choppsv1 commented Nov 15, 2024

@mwinter-osr Did we still want to get this in? Also as a further improvement should the path for the default log file use some value from ./configure?

@github-actions github-actions bot added the rebase PR needs rebase label Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants