Dzahn has uploaded a new change for review. https://gerrit.wikimedia.org/r/130600
Change subject: fix apache-graceful-all for use in eqiad ...................................................................... fix apache-graceful-all for use in eqiad fix the script to work from tin the original version on fenari stays untouched until this is tested Change-Id: Ib7bc824944e648752e822e3bc68c68c0fead1d94 --- M modules/apachesync/files/apache-graceful-all 1 file changed, 7 insertions(+), 5 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/operations/puppet refs/changes/00/130600/1 diff --git a/modules/apachesync/files/apache-graceful-all b/modules/apachesync/files/apache-graceful-all index bddd1bb..89160d9 100755 --- a/modules/apachesync/files/apache-graceful-all +++ b/modules/apachesync/files/apache-graceful-all @@ -1,8 +1,10 @@ #!/bin/bash -if [ `cat /etc/cluster` == pmtpa ]; then - /home/wikipedia/bin/dologmsg "$USER is doing a graceful restart of all apaches" +if [ `cat /etc/cluster` == eqiad ]; then + /usr/local/bin/dologmsg "$USER is doing a graceful restart of all apaches" fi -ddsh -F20 -g apaches -cM 'if [ -x /home/wikipedia/bin/apache-graceful ]; then echo "/home-mounted apache $(hostname)"; /home/wikipedia/bin/apache-graceful; else /usr/bin/apache-sanity-check && sudo /usr/sbin/apache2ctl graceful; fi' -if [ `cat /etc/cluster` == pmtpa ]; then - /home/wikipedia/bin/dologmsg "!log $USER gracefulled all apaches" + +dsh -F20 -g apaches -cM '/usr/bin/apache-sanity-check && sudo /usr/sbin/apache2ctl graceful' + +if [ `cat /etc/cluster` == eqiad ]; then + /usr/local/bin/dologmsg "!log $USER gracefulled all apaches" fi -- To view, visit https://gerrit.wikimedia.org/r/130600 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ib7bc824944e648752e822e3bc68c68c0fead1d94 Gerrit-PatchSet: 1 Gerrit-Project: operations/puppet Gerrit-Branch: production Gerrit-Owner: Dzahn <dz...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits