fix: harden gateway systemd restart behavior#13689
Conversation
d481b0f to
8646456
Compare
|
Branch refreshed onto latest main. Local verification passed: venv/bin/python -m pytest -q tests/hermes_cli/test_gateway_service.py tests/hermes_cli/test_update_gateway_restart.py. GitHub Actions on new head 8646456 still show action_required with zero jobs across workflows, so remaining blocker looks like fork-run approval/policy gate rather than code failure. |
1b5bfc4 to
aa544a1
Compare
|
Branch refreshed onto latest main again. Local targeted verification passed on new head |
aa544a1 to
58fa8c0
Compare
|
Branch refreshed onto latest |
58fa8c0 to
013a5f1
Compare
|
Branch refreshed onto latest main again. Local targeted verification passed on new head |
3a088f1 to
8d922ed
Compare
|
Refreshed branch onto latest Local targeted verification on refreshed head: Current CI is still blocked by repo-level failures outside this PR diff ( |
8d922ed to
8d2b502
Compare
|
Refreshed branch onto current Local verification on refreshed branch:
GitHub Actions reran on new head; status still pending at time of refresh. |
8d2b502 to
7728354
Compare
|
Maintenance refresh: branch refreshed onto latest |
7728354 to
5a76cec
Compare
|
Maintenance refresh: rebased onto current Local targeted verification passed: Fresh Actions have started on the new head; compare is now |
1a49861 to
0131a18
Compare
7059599 to
da8ad20
Compare
Summary
KillMode=mixedtoKillMode=control-groupWhy
This improves gateway restart reliability for Hermes users running under systemd. In live debugging, stale
gateway.pidfiles and brittle cgroup restart behavior caused restart races and stop-timeout loops. The generated units should be more defensive by default.Testing
python -m pytest tests/hermes_cli/test_gateway_service.py tests/hermes_cli/test_update_gateway_restart.py tests/gateway/test_gateway_shutdown.py tests/gateway/test_restart_notification.py tests/gateway/test_restart_drain.py -q164 passedNotes