jenkins-bot has submitted this change and it was merged.
Change subject: Remove restart-nutcracker and restart-twemproxy scripts
......................................................................
Remove restart-nutcracker and restart-twemproxy scripts
Nutcracker's config is managed in Puppet now and can only be changed by roots.
Roots use Salt rather than DSH because it's just SO MUCH BETTER YOU DON'T
UNDERSTAND.
Change-Id: I71c056c5765a7e37ede46bbe5361d9b879df7b77
---
D bin/restart-nutcracker
D bin/restart-twemproxy
2 files changed, 0 insertions(+), 48 deletions(-)
Approvals:
BryanDavis: Looks good to me, approved
jenkins-bot: Verified
diff --git a/bin/restart-nutcracker b/bin/restart-nutcracker
deleted file mode 100755
index 30912df..0000000
--- a/bin/restart-nutcracker
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/bin/bash
-. /usr/local/lib/mw-deployment-vars.sh
-BINDIR="/usr/local/bin"
-
-if [ ! -S "$SSH_AUTH_SOCK" ]; then
- echo >&2 "SSH_AUTH_SOCK not set or not pointing to a socket."
- echo >&2 "Did you start your ssh-agent?"
- exit 1
-fi
-
-# No use going any further if we can't complete the sync
-[ $(which dsh 2>/dev/null) ] || {
- echo >&2 "Error: no dsh on this host, aborting"
- exit 1
-}
-
-# Restart twemproxy
-echo 'Restarting nutcracker on all servers'
-dsh -cM -g mediawiki-installation -o -oSetupTimeout=30 -F8 -- "sudo
/sbin/restart nutcracker"
-
-echo 'Finished'
-
-# Notify
-$BINDIR/dologmsg "!log $USER restarted nutcracker on all servers"
diff --git a/bin/restart-twemproxy b/bin/restart-twemproxy
deleted file mode 100755
index 41af489..0000000
--- a/bin/restart-twemproxy
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/bin/bash
-. /usr/local/lib/mw-deployment-vars.sh
-BINDIR="/usr/local/bin"
-
-if [ ! -S "$SSH_AUTH_SOCK" ]; then
- echo >&2 "SSH_AUTH_SOCK not set or not pointing to a socket."
- echo >&2 "Did you start your ssh-agent?"
- exit 1
-fi
-
-# No use going any further if we can't complete the sync
-[ $(which dsh 2>/dev/null) ] || {
- echo >&2 "Error: no dsh on this host, aborting"
- exit 1
-}
-
-# Restart twemproxy
-echo 'Restarting twemproxy on all servers'
-dsh -cM -g mediawiki-installation -o -oSetupTimeout=30 -F8 -- "sudo
/sbin/restart twemproxy"
-
-echo 'Finished'
-
-# Notify
-$BINDIR/dologmsg "!log $USER restarted twemproxy on all servers"
--
To view, visit https://gerrit.wikimedia.org/r/163076
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I71c056c5765a7e37ede46bbe5361d9b879df7b77
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/tools/scap
Gerrit-Branch: master
Gerrit-Owner: Ori.livneh <[email protected]>
Gerrit-Reviewer: BryanDavis <[email protected]>
Gerrit-Reviewer: Ori.livneh <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits