Fix clean shutdown with docker kill

By using "docker kill" to stop the core it will bluntly stop the core. A
graceful shutdown will be be performed because it sends SIGKILL which
cannot be trapped.

The "docker kill --signal SIGINT" command should be used instead, but
this requires that the core is root process in the image. The run.sh
shell script process has to be replaced by the core process, otherwise
the SIGINT will not reach the core.
This commit is contained in:
Ingo Oppermann
2023-09-21 14:01:17 +02:00
parent 63714dec87
commit 477243a38e

2
run.sh
View File

@@ -19,4 +19,4 @@ fi
# Now run the core with the possibly converted configuration.
./bin/core
exec ./bin/core