Switch back to the upstream nginx cookbook
chef_nginx is deprecated
This commit is contained in:
13
cookbooks/nginx/templates/default/nginx.service.erb
Normal file
13
cookbooks/nginx/templates/default/nginx.service.erb
Normal file
@@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=The nginx HTTP and reverse proxy server
|
||||
After=network.target remote-fs.target nss-lookup.target
|
||||
|
||||
[Service]
|
||||
ExecStartPre=<%= node['nginx']['binary'] %> -t
|
||||
ExecStart=<%= node['nginx']['binary'] %>
|
||||
ExecReload=/bin/kill -s HUP $MAINPID
|
||||
ExecStop=/bin/kill -s QUIT $MAINPID
|
||||
PrivateTmp=true
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user