Created
December 23, 2020 04:42
-
-
Save bateleurX/254d40629e0b6197646be98a0c59ff79 to your computer and use it in GitHub Desktop.
UNIXドメインソケットを利用するときのnginx.conf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=The nginx HTTP and reverse proxy server | |
After=network.target remote-fs.target nss-lookup.target | |
[Service] | |
Type=forking | |
PIDFile=/run/nginx.pid | |
# Nginx will fail to start if /run/nginx.pid already exists but has the wrong | |
# SELinux context. This might happen when running `nginx -t` from the cmdline. | |
# https://bugzilla.redhat.com/show_bug.cgi?id=1268621 | |
ExecStartPre=/usr/bin/rm -f /run/nginx.pid | |
ExecStartPre=/usr/sbin/nginx -t | |
ExecStart=/usr/sbin/nginx | |
ExecReload=/bin/kill -s HUP $MAINPID | |
ExecStop=/bin/kill -s TERM $MAINPID | |
KillSignal=SIGQUIT | |
TimeoutStopSec=5 | |
KillMode=mixed | |
PrivateTmp=true | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment