nostr-rs-relay container runs and stops on CTRL-C correctly in attached mode (as described in the README).
But it can't stop correctly when running in detached mode:
localhost:~$ podman run -it -d --rm --name nostr-relay nostr-rs-relay:latest
42ce2a4bd94da94cecbacae6e3e496f2c44f1ffa1b52fa2320517977700f4bce
localhost:~$ podman stop nostr-relay
WARN[0010] StopSignal SIGTERM failed to stop container nostr-relay in 10 seconds, resorting to SIGKILL
nostr-relay
localhost:~$ podman run -it -d --rm --name nostr-relay --stop-signal=SIGINT nostr-rs-relay:latest
e8b5b3493b98c8146cd0efab448db65f5f829a2c295826e798b27ea06ce0c50c
localhost:~$ podman stop nostr-relay
WARN[0010] StopSignal SIGINT failed to stop container nostr-relay in 10 seconds, resorting to SIGKILL
nostr-relay
Debug log in detached mode (it doesn't show that it is catching any signals):
2025-07-19T10:57:26.781863Z INFO nostr_rs_relay: Starting up from main
2025-07-19T10:57:26.787961Z INFO nostr_rs_relay::server: listening on: 0.0.0.0:8080
2025-07-19T10:57:26.856855Z INFO nostr_rs_relay::repo::sqlite: Built a connection pool "writer" (min=0, max=2)
2025-07-19T10:57:26.860402Z INFO nostr_rs_relay::repo::sqlite: Built a connection pool "maintenance" (min=0, max=2)
2025-07-19T10:57:26.865995Z INFO nostr_rs_relay::repo::sqlite: Built a connection pool "reader" (min=4, max=8)
2025-07-19T10:57:26.868312Z INFO nostr_rs_relay::repo::sqlite_migration: DB version = 0
2025-07-19T10:57:26.868673Z DEBUG nostr_rs_relay::repo::sqlite_migration: SQLite max query parameters: 32766
2025-07-19T10:57:26.868843Z DEBUG nostr_rs_relay::repo::sqlite_migration: SQLite max table/blob/text length: 953 MB
2025-07-19T10:57:26.868937Z DEBUG nostr_rs_relay::repo::sqlite_migration: SQLite max SQL length: 953 MB
2025-07-19T10:57:26.921894Z INFO nostr_rs_relay::repo::sqlite_migration: database pragma/schema initialized to v18, and ready
2025-07-19T10:57:26.922120Z INFO nostr_rs_relay::repo::sqlite_migration: All migration scripts completed successfully. Welcome to v18.
2025-07-19T10:57:26.922283Z DEBUG nostr_rs_relay::repo::sqlite_migration: SQLite PRAGMA startup completed
2025-07-19T10:57:26.922880Z INFO nostr_rs_relay::server: db writer created
2025-07-19T10:57:26.923684Z DEBUG nostr_rs_relay::db: Pay to relay: false
2025-07-19T10:57:26.924896Z INFO nostr_rs_relay::server: control message listener started
My host: Alpine Linux 3.23 on a Raspberry Pi 3B
podman version 5.5.2
Might be related to #38
nostr-rs-relay container runs and stops on CTRL-C correctly in attached mode (as described in the README).
But it can't stop correctly when running in detached mode:
Debug log in detached mode (it doesn't show that it is catching any signals):
My host: Alpine Linux 3.23 on a Raspberry Pi 3B
podman version 5.5.2
Might be related to #38