BBlack has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/186258

Change subject: use /run/ directly for pidfile under systemd
......................................................................

use /run/ directly for pidfile under systemd

Change-Id: Ia6fb7ba1da72f5cae87b825a3befd7341c37673d
---
M templates/nginx/nginx.conf.erb
1 file changed, 4 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/58/186258/1

diff --git a/templates/nginx/nginx.conf.erb b/templates/nginx/nginx.conf.erb
index 5cd6e03..f231006 100644
--- a/templates/nginx/nginx.conf.erb
+++ b/templates/nginx/nginx.conf.erb
@@ -16,7 +16,11 @@
 
 
 error_log  /var/log/nginx/error.log;
+<% if @initsystem == 'systemd' -%>
+pid        /run/nginx.pid;
+<% else -%>
 pid        /var/run/nginx.pid;
+<% end -%>
 
 events {
     worker_connections  <%= @nginx_worker_connections %>;

-- 
To view, visit https://gerrit.wikimedia.org/r/186258
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia6fb7ba1da72f5cae87b825a3befd7341c37673d
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: BBlack <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to