nginx/nginx.service

14 lines
362 B
SYSTEMD
Raw Normal View History

[Unit]
Description=A high performance web server and reverse proxy server
[Service]
Type=forking
PIDFile=/run/nginx.pid
ExecStartPre=/usr/sbin/nginx -t -c /etc/nginx/nginx.conf
ExecStart=/usr/sbin/nginx -c /etc/nginx/nginx.conf
ExecReload=/usr/sbin/nginx -c /etc/nginx/nginx.conf -s reload
ExecStop=/usr/sbin/nginx -s quit
[Install]
WantedBy=multi-user.target