Skip to content

Add top-level standardized start/stop scripts (CRS_PORT_HTTP) - #8

Merged
normanajn merged 1 commit into
mainfrom
standardize-startstop-scripts
Jun 29, 2026
Merged

Add top-level standardized start/stop scripts (CRS_PORT_HTTP)#8
normanajn merged 1 commit into
mainfrom
standardize-startstop-scripts

Conversation

@normanajn

Copy link
Copy Markdown
Contributor

Implements #5.

  • Adds top-level start-mu2edaq-resource-manager.sh / stop-mu2edaq-resource-manager.sh, the standardized names the control room dispatcher (crs-app start|stop resource-manager) expects.
  • start-mu2edaq-resource-manager.sh maps CRS_PORT_HTTP (default 8080, matching apps.yaml) to RM_PORT and starts in daemon mode via scripts/start_server.sh.
  • stop-mu2edaq-resource-manager.sh delegates to scripts/stop_server.sh.
  • The existing scripts/start_server.sh / scripts/stop_server.sh are left unchanged (these are thin top-level wrappers around them).

Closes #5

🤖 Generated with Claude Code

Adds top-level start-mu2edaq-resource-manager.sh /
stop-mu2edaq-resource-manager.sh, the standardized names the Mu2e control
room (crs-app) expects. The start script maps CRS_PORT_HTTP (default
8080) to RM_PORT and starts the server in daemon mode via
scripts/start_server.sh; the stop script delegates to
scripts/stop_server.sh. The existing scripts/ entry points are unchanged.

Closes #5

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 29, 2026 18:32

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds control-room–standard top-level start/stop entrypoint scripts for the Mu2e DAQ Resource Manager, aligning with the dispatcher’s expected script names and providing a CRS_PORT_HTTP environment mapping for the service port.

Changes:

  • Added start-mu2edaq-resource-manager.sh wrapper that maps CRS_PORT_HTTP to RM_PORT and starts the server in daemon mode via scripts/start_server.sh.
  • Added stop-mu2edaq-resource-manager.sh wrapper that delegates to scripts/stop_server.sh.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
start-mu2edaq-resource-manager.sh New standardized top-level start wrapper, sets env and delegates to existing start script.
stop-mu2edaq-resource-manager.sh New standardized top-level stop wrapper delegating to existing stop script.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

export RM_PORT="${CRS_PORT_HTTP:-${RM_PORT:-8080}}"
Comment on lines +9 to +10
# Port precedence: CRS_PORT_HTTP env > RM_PORT env > built-in default (8080,
# matching apps.yaml).
@normanajn
normanajn merged commit 25de44f into main Jun 29, 2026
1 check passed
@normanajn
normanajn deleted the standardize-startstop-scripts branch June 29, 2026 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move scripts/start_server.sh to top-level start-mu2edaq-resource-manager.sh and add a stop script

2 participants