mirror of
https://github.com/dunwu/linux-tutorial.git
synced 2024-04-15 19:55:24 +08:00
16 lines
486 B
SYSTEMD
16 lines
486 B
SYSTEMD
|
[Unit]
|
||
|
Description=The NGINX HTTP and reverse proxy server
|
||
|
After=syslog.target network.target remote-fs.target nss-lookup.target
|
||
|
|
||
|
[Service]
|
||
|
Type=forking
|
||
|
PIDFile=/usr/local/nginx/logs/nginx.pid
|
||
|
ExecStartPre=/usr/local/nginx/sbin/nginx -t -c /usr/local/nginx/conf/nginx.conf
|
||
|
ExecStart=/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
|
||
|
ExecReload=/usr/local/nginx/sbin/nginx -s reload
|
||
|
ExecStop=/bin/kill -s QUIT $MAINPID
|
||
|
PrivateTmp=true
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|