Let the daemon receive docker stop's signal itself (closes #33) #35

Merged
clawbot merged 2 commits from issue-33-stop-signal into next 2026-09-28 21:08:33 +02:00
2 Commits
Author SHA1 Message Date
sneak 3310376e2a Correct the stop-time wording in TODO.md
check / check (push) Successful in 2m42s
The daemon is no longer killed 2 seconds after the stop signal, so it
gets the whole wait docker stop allows, up to its own 60-second limit;
it does not always get 60 seconds.

Model: opus-5-5
2026-09-28 18:43:17 +00:00
sneak d1f912baae Let the daemon receive docker stop's signal itself (closes #33)
check / check (push) Successful in 2m49s
entrypoint.sh now switches to the routewatch user with setpriv instead of
runuser. setpriv replaces itself with the daemon, so the daemon gets the stop
signal directly and has its full 60 seconds to shut down; runuser stayed in
between and killed the daemon 2 seconds after passing the signal on. setpriv
keeps the environment, so GOMEMLIMIT, MALLOC_ARENA_MAX and XDG_DATA_HOME still
reach the daemon, and the state directory stays
/var/lib/berlin.sneak.app.routewatch.

Model: opus-5-5
2026-09-28 18:11:11 +00:00