Skip to content

Instantly share code, notes, and snippets.

@lintmx
Created August 21, 2021 14:38
Show Gist options
  • Save lintmx/072ef33d14f36b32e39443c676705838 to your computer and use it in GitHub Desktop.
Save lintmx/072ef33d14f36b32e39443c676705838 to your computer and use it in GitHub Desktop.
nginx.service
[Unit]
Description=A high performance web server and a reverse proxy server
After=network.target network-online.target nss-lookup.target
[Service]
Type=forking
PIDFile=/var/run/nginx.pid
PrivateDevices=yes
SyslogLevel=err
ExecStart=/usr/sbin/nginx -g 'pid /run/nginx.pid; error_log stderr;'
ExecReload=/usr/sbin/nginx -s reload
KillSignal=SIGQUIT
KillMode=mixed
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment