Merge pull request #101 from Mr-xn/master

nginx.conf optimization&add pid file
pull/124/head
wulabing 2019-10-17 23:28:45 +08:00 committed by GitHub
commit 314c121245
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -491,8 +491,9 @@ After=syslog.target network.target remote-fs.target nss-lookup.target
[Service] [Service]
Type=forking Type=forking
PIDFile=/etc/nginx/logs/nginx.pid
ExecStartPre=/etc/nginx/sbin/nginx -t ExecStartPre=/etc/nginx/sbin/nginx -t
ExecStart=/etc/nginx/sbin/nginx ExecStart=/etc/nginx/sbin/nginx -c ${nginx_dir}/conf/nginx.conf
ExecReload=/etc/nginx/sbin/nginx -s reload ExecReload=/etc/nginx/sbin/nginx -s reload
ExecStop=/bin/kill -s QUIT \$MAINPID ExecStop=/bin/kill -s QUIT \$MAINPID
PrivateTmp=true PrivateTmp=true