The GitHub Actions job "CI" on grails-core.git/fix/stop-app-cli has succeeded.
Run started by GitHub user jamesfredley (triggered by jamesfredley).

Head commit for run:
a53817cc4af1e700f10dbe8b3063ef6993c05c04 / James Fredley 
<[email protected]>
Rework stop-app to terminate run-app via a PID file

Replaces the in-memory RunningApplicationRegistry, which only worked within
a single CLI JVM session, with a PID file plus OS signal so that stop-app can
terminate an application started by run-app even when it was forked into a
separate process or when stop-app is run from a different grails invocation.

run-app now asks the forked bootRun application to write its PID via Spring
Boot's ApplicationPidFileWriter, gated by the cli.pid.file system property so
production runs are unaffected. stop-app reads build/run-app.pid and stops the
process with ProcessHandle.destroy() (a graceful SIGTERM on Unix-like systems;
best effort on Windows), guarding against stale and recycled PIDs, then removes
the file. A stop marker lets a foreground run-app report a clean shutdown rather
than a startup failure when its process is terminated, and an already-running
guard prevents a second run-app from orphaning a running application.

Assisted-by: claude-code:claude-4.8-opus

Report URL: https://github.com/apache/grails-core/actions/runs/26929860955

With regards,
GitHub Actions via GitBox

Reply via email to