rc.nginx: include path to monitor_nchan#2107
Conversation
rc.nginx can not find monitor_nchan
WalkthroughThis pull request updates the Changes
Sequence Diagram(s)sequenceDiagram
participant Script as rc.nginx
participant MN as monitor_nchan
Script->>MN: /usr/local/sbin/monitor_nchan start
Note over Script,MN: Called from nginx_start
Script->>MN: /usr/local/sbin/monitor_nchan stop
Note over Script,MN: Called from nginx_stop and nginx_reload
Script->>MN: /usr/local/sbin/monitor_nchan stop remove
Note over Script,MN: Called from nginx_stop_forced
Possibly related PRs
Poem
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (3)
etc/rc.d/rc.nginx (3)
716-716: Explicit Monitor Nchan Start in nginx_startThe command has been updated to call
/usr/local/sbin/monitor_nchan startexplicitly. This ensures that the correct executable is invoked regardless of the shell’s PATH. Consider verifying that the file exists and is executable in all target environments.
730-730: Use Full Path for Stopping Nchan Publishers in nginx_stopThe change to
/usr/local/sbin/monitor_nchan stopis consistent with the PR objective and improves clarity on the executable’s location. It would be beneficial to ensure that the file’s existence and permissions are validated elsewhere if needed.
749-749: Force Stop with Explicit Path in nginx_stop_forcedUpdating the call to
/usr/local/sbin/monitor_nchan stop removecorrectly specifies the absolute path. Please double-check that the arguments (stop remove) align with the expected behavior of the monitor_nchan utility.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
etc/rc.d/rc.nginx(5 hunks)
🔇 Additional comments (2)
etc/rc.d/rc.nginx (2)
781-781: Consistent Full Path Usage in nginx_reload (Pause Action)The command
/usr/local/sbin/monitor_nchan stopin the reload function is now explicitly defined, keeping consistency with other functions. This improves traceability across the script.
792-792: Resume Nchan Publishers Explicitly in nginx_reloadThe updated call
/usr/local/sbin/monitor_nchan startresumes nchan publishers with a clearly defined binary path. This meets the PR objective and ensures predictable behavior.
rc.nginx can not find monitor_nchan
Summary by CodeRabbit