more organization
authorChris Sharp <csharp@georgialibraries.org>
Wed, 6 Jan 2016 13:31:20 +0000 (08:31 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Wed, 6 Jan 2016 13:31:20 +0000 (08:31 -0500)
bricks/restart-services.sh [new file with mode: 0755]
restart-services.sh [deleted file]

diff --git a/bricks/restart-services.sh b/bricks/restart-services.sh
new file mode 100755 (executable)
index 0000000..efe6fb8
--- /dev/null
@@ -0,0 +1,32 @@
+#!/bin/bash
+
+# (C) Copyright 2015 Georgia Public Library Service
+# Chris Sharp <csharp@georgialibraries.org>
+#
+# Convenience script for restarting services across multiple bricks.
+#
+
+
+Usage (){
+        echo "USAGE: $0 <command>"
+        echo "Valid commands: apache, opensrf, autogen."
+        exit 1;
+}
+
+HEADS="brick02-head brick03-head brick04-head brick05-head brick06-head"
+case $1 in
+*help)   Usage ;;
+"")      Usage ;;
+apache)  COMMAND="/etc/init.d/apache2 restart" ;;
+opensrf) COMMAND="/etc/init.d/opensrf restart" ;;
+autogen) COMMAND="/etc/init.d/opensrf autogen" ;;
+*)       Usage ;;
+esac
+
+# start with ourselves
+#echo "`hostname`:"
+#bash -ic detach && $COMMAND && sleep 2 && bash -ic attach
+for head in $HEADS; do
+        echo "$head:"
+        ssh $head "bash -ic detach && $COMMAND && sleep 2 && bash -ic attach"
+done
diff --git a/restart-services.sh b/restart-services.sh
deleted file mode 100644 (file)
index efe6fb8..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/bin/bash
-
-# (C) Copyright 2015 Georgia Public Library Service
-# Chris Sharp <csharp@georgialibraries.org>
-#
-# Convenience script for restarting services across multiple bricks.
-#
-
-
-Usage (){
-        echo "USAGE: $0 <command>"
-        echo "Valid commands: apache, opensrf, autogen."
-        exit 1;
-}
-
-HEADS="brick02-head brick03-head brick04-head brick05-head brick06-head"
-case $1 in
-*help)   Usage ;;
-"")      Usage ;;
-apache)  COMMAND="/etc/init.d/apache2 restart" ;;
-opensrf) COMMAND="/etc/init.d/opensrf restart" ;;
-autogen) COMMAND="/etc/init.d/opensrf autogen" ;;
-*)       Usage ;;
-esac
-
-# start with ourselves
-#echo "`hostname`:"
-#bash -ic detach && $COMMAND && sleep 2 && bash -ic attach
-for head in $HEADS; do
-        echo "$head:"
-        ssh $head "bash -ic detach && $COMMAND && sleep 2 && bash -ic attach"
-done