Ema has submitted this change and it was merged.

Change subject: varnish-backend-restart: fix service invocation
......................................................................


varnish-backend-restart: fix service invocation

'service' is under /usr/sbin, which is not in cron's path

Change-Id: If413fcef0167cb49469acec13c6ec44ea80b3a06
---
M modules/varnish/files/varnish-backend-restart
1 file changed, 4 insertions(+), 4 deletions(-)

Approvals:
  Ema: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/modules/varnish/files/varnish-backend-restart 
b/modules/varnish/files/varnish-backend-restart
index c3bf9e0..4a3f333 100644
--- a/modules/varnish/files/varnish-backend-restart
+++ b/modules/varnish/files/varnish-backend-restart
@@ -10,20 +10,20 @@
 sleep 15
 
 # Restart varnish and wipe storage
-service varnish stop
+/usr/sbin/service varnish stop
 rm -f /srv/sd*/varnish*
-service varnish start
+/usr/sbin/service varnish start
 
 sleep 5
 
 # Fix VSM files permissions and restart ganglia
 chmod 644 /var/lib/varnish/*/*.vsm
-service ganglia-monitor restart
+/usr/sbin/service ganglia-monitor restart
 
 sleep 5
 
 # Sometimes varnishkafka crashes after a varnish restart
-service varnishkafka-webrequest restart
+/usr/sbin/service varnishkafka-webrequest restart
 
 # Repool varnish-be and varnish-be-rand
 confctl --quiet select name=`hostname -f`,service='varnish-be' set/pooled=yes

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

Gerrit-MessageType: merged
Gerrit-Change-Id: If413fcef0167cb49469acec13c6ec44ea80b3a06
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Ema <e...@wikimedia.org>
Gerrit-Reviewer: BBlack <bbl...@wikimedia.org>
Gerrit-Reviewer: Elukey <ltosc...@wikimedia.org>
Gerrit-Reviewer: Ema <e...@wikimedia.org>
Gerrit-Reviewer: Giuseppe Lavagetto <glavage...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to