Avoid propagation of error status on clean shutdown (#2062)

This commit is contained in:
Stefan Agner
2021-06-08 13:24:07 +02:00
committed by GitHub
parent 0f75ea615f
commit dfc3920c87

View File

@@ -126,6 +126,8 @@ fi
function stop_mariadb() { function stop_mariadb() {
bashio::services.delete "mysql" bashio::services.delete "mysql"
mysqladmin shutdown mysqladmin shutdown
# Successful exit, avoid wait exit status to propagate
exit 0
} }
trap "stop_mariadb" SIGTERM SIGHUP trap "stop_mariadb" SIGTERM SIGHUP