mirror of
https://blitiri.com.ar/repos/chasquid
synced 2026-01-09 17:55:57 +00:00
When we get SIGINT or SIGTERM, today chasquid exits with code 1. This can confuse some of the supervision tools. In particular, Docker and Kubernetes expect exit 0 upon an intentional stop. And systemd, the Restart= semantics make a difference with 0 and non-0, and exiting with 1 prevents users from making that distinction. This patch changes the SIGINT/SIGTERM exit code to 0, to make it easier for users to set up things as desired in those environments. Thanks to [Guiorgy@github](https://github.com/Guiorgy) for reporting this problem in https://github.com/albertito/chasquid/pull/70.
9.6 KiB
9.6 KiB