nginx

[Unit]
Description=nginx – high performance web server
Documentation=http://nginx.org/en/docs/
After=network.target remote-fs.target nss-lookup.target

[Service]
Type=forking
PIDFile={{work_dir}}/sbin/nginx.pid
ExecStartPre={{work_dir}}/sbin/nginx -t -c {{work_dir}}/conf/nginx.conf
ExecStart={{work_dir}}/sbin/nginx -c {{work_dir}}/conf/nginx.conf
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s QUIT $MAINPID
PrivateTmp=true
RuntimeDirectory=nginx
RuntimeDirectoryMode=0755

[Install]
WantedBy=multi-user.target

发表评论

您的电子邮箱地址不会被公开。