Yuvipanda has uploaded a new change for review.
https://gerrit.wikimedia.org/r/187949
Change subject: tools: Add support to bigbrother to just say webservice2
......................................................................
tools: Add support to bigbrother to just say webservice2
This would default to trusty
Change-Id: Id57caa80e552f4ae3471337cf1e0223cb0a6aca5
---
M modules/toollabs/files/bigbrother
1 file changed, 8 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/49/187949/1
diff --git a/modules/toollabs/files/bigbrother
b/modules/toollabs/files/bigbrother
index a813e70..fe505fe 100755
--- a/modules/toollabs/files/bigbrother
+++ b/modules/toollabs/files/bigbrother
@@ -86,6 +86,14 @@
}
$expect = "$name-$1";
$start = "/usr/bin/webservice -$name start";
+ } elseif(m/^webservice2(:?\s+-([a-z]+))?$/) {
+ my $name = $2 // "lighttpd";
+ unless($username =~ m/^tools\.(.*)$/) {
+ ulog $username, 'error', "$rcfile:$line: unable to figure
out webgrid name! (not possible)";
+ next;
+ }
+ $expect = "$name-$1";
+ $start = "/usr/local/bin/webservice2 -$name start";
}
elsif(m/^webservice(:?\s+(--release\s+[a-z]+))?(:?\s+([a-z]+))?$/) {
my $rel = $2 // '';
my $name = $3 // "lighttpd";
--
To view, visit https://gerrit.wikimedia.org/r/187949
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Id57caa80e552f4ae3471337cf1e0223cb0a6aca5
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Yuvipanda <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits