Make nginx to be process 1 to accept SIGTERM signal (#746)

This commit is contained in:
xuewenG 2023-03-10 10:53:21 +08:00 committed by GitHub
parent 8334d36f34
commit e7a5088b97
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,3 +1,3 @@
#!/bin/sh
sed -i "s|http://127.0.0.1:9090|$YACD_DEFAULT_BACKEND|" /usr/share/nginx/html/index.html
nginx -g "daemon off;"
exec nginx -g "daemon off;"