Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
nlbwmon: enhance init script with logging and health checks #29709
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
base: master
Are you sure you want to change the base?
Uh oh!
There was an error while loading. Please reload this page.
nlbwmon: enhance init script with logging and health checks #29709
Changes from 2 commits
5332e7085e2d43e218ea5File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
health_check()is defined but never called anywhere in the script, so it is dead code. If it is meant to back astatus/health command, wire it into astatus_service(); otherwise remove it.Generated by Claude Code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nlbwmon does not accept these long options. Its argument parser is short-option only —
getopt(argc, argv, "b:i:r:s:o:p:G:I:L:PZ")(nogetopt_long), see https://github.com/jow-/nlbwmon/blob/29236be687927b0c81ee6e2642e7caa8787c4ad3/nlbwmon.c#L218 . Passing--threads/--memory-limithere (and--debugat line 124) will not enable any feature;getoptstops at the first--, so the values are treated as stray non-option args rather than tuning. nlbwmon is also single-threaded, so there is no thread-count knob to expose. Please dropadd_performance_options/add_debug_modeunless you can point to the flags in nlbwmon's option table.Generated by Claude Code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
/etc/init.d/nlbwmon reloadcommand argument was dropped from this call. The signature isprocd_add_interface_trigger <name> <interface> <command...>; without the command the trigger fires but runs nothing, so interface changes never trigger a reload. Restore the action:Generated by Claude Code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Re-raising because the thread for this was marked resolved without a corresponding code change:
service_triggers()is still deleted here, and it is the only entry point procd has for registering triggers —_procd_close_service()calls it unconditionally between_procd_open_trigger/_procd_close_trigger(procd.sh:98-102). With the function gone, the stub inrc.commonruns instead and no triggers are registered, so two behaviours are lost:procd_add_reload_trigger "dhcp" "system" "nlbwmon"— the service no longer reloads on dhcp/system/network config changes.config_foreach add_interface_trigger dhcp— which makesadd_interface_trigger()above dead code that is never called.Restoring the function at the end of the file fixes both:
Generated by Claude Code
Uh oh!
There was an error while loading. Please reload this page.