tunnel/nginx.service

13 lines
431 B
INI
Raw Permalink Normal View History

2024-01-16 14:44:09 +00:00
[Unit]
Description=nginx - high performance web server
Documentation=https://nginx.org/en/docs/
After=wg-quick@wg0.service
Wants=network-online.target
[Service]
Type=forking
PIDFile=/var/run/nginx.pid
ExecStart=/usr/sbin/nginx -c /etc/nginx/nginx.conf
ExecReload=/bin/sh -c "/bin/kill -s HUP $(/bin/cat /var/run/nginx.pid)"
ExecStop=/bin/sh -c "/bin/kill -s TERM $(/bin/cat /var/run/nginx.pid)"
[Install]
WantedBy=multi-user.target