fix(gateway): prefer systemd scope for timeout check - #54396
Conversation
2056d94 to
0cd4c7b
Compare
|
Thanks for the focused regression fix. Current main still tries The patch hunk context matches current main, is limited to the diagnostic path and its tests, and introduces no config, tool-schema, caching, or message-flow changes. This is an automated hermes-sweeper review. |
0cd4c7b to
65e1745
Compare
|
Rebased cleanly onto current |
65e1745 to
07dcd68
Compare
|
Attribution gate fixed by rewriting the unchanged commit with the repository-approved author identity. New exact head: |
Summary
/proc/self/cgroupbefore checkingTimeoutStopUSec./system.sliceand the user manager for/user.slice.Why
Gateway startup could warn that a systemd unit was stale even when the running service was a system unit with a correct
TimeoutStopSec. The check queriedsystemctl --userfirst, so a same-named inactive user unit could produce a falseTimeoutStopSec=90smismatch.Test plan
python -m py_compile gateway/shutdown_forensics.py tests/gateway/test_shutdown_forensics.pypython -m pytest tests/gateway/test_shutdown_forensics.py -q -o 'addopts=' --tb=short