nginx/nginx.service

14 lines
366 B
SYSTEMD
Raw Normal View History

[Unit]
Description=A high performance web server and reverse proxy server
[Service]
Type=forking
2012-03-04 16:40:09 +00:00
PIDFile=/var/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