summaryrefslogtreecommitdiffstats
path: root/common/common-scripts/src/main/resources/scripts
diff options
context:
space:
mode:
authorMaros Marsalek <mmarsale@cisco.com>2016-10-12 14:48:17 +0200
committerMarek Gradzki <mgradzki@cisco.com>2016-10-17 09:11:21 +0000
commit7236617f71a2090aa1aebac37e2b7b51330cdc73 (patch)
tree97011e0210a589adfb48c00b761d8ec59d631f8b /common/common-scripts/src/main/resources/scripts
parent957461dcfd741fc3290e4317c2297c5618b593b5 (diff)
HONEYCOMB-157 Extract groovy scripts from poms
And put all of them into a dedicated module Change-Id: Id04c66806a89af68d821a43ef92f0a59220e04e9 Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Diffstat (limited to 'common/common-scripts/src/main/resources/scripts')
-rw-r--r--common/common-scripts/src/main/resources/scripts/README26
-rw-r--r--common/common-scripts/src/main/resources/scripts/forkScript2
-rw-r--r--common/common-scripts/src/main/resources/scripts/killScript2
-rw-r--r--common/common-scripts/src/main/resources/scripts/startScript13
4 files changed, 43 insertions, 0 deletions
diff --git a/common/common-scripts/src/main/resources/scripts/README b/common/common-scripts/src/main/resources/scripts/README
new file mode 100644
index 000000000..80b1519f1
--- /dev/null
+++ b/common/common-scripts/src/main/resources/scripts/README
@@ -0,0 +1,26 @@
+= This is a Honeycomb distribution
+
+Built from: ${groupId}/${artifactId}
+Version: ${version}
+
+https://wiki.fd.io/view/Honeycomb
+
+== Structure
+
+Structure of the distribution:
+
+=== Config
+Folder config contains any configuration that's exposed by Honeycomb and its plugins
+
+=== Cert
+Keystore/Truststore for Restconf's HTTPS endpoint
+
+=== Modules
+Folder modules contains text files with list of modules to be installed into Honeycomb.
+Those modules bring up Honeycomb's infrastructure as well as modules.
+
+=== Shell scripts
+${startScript} - Start Honeycomb
+${debugScript} - Start Honeycomb with JVM remote debug capabilities
+${forkScript} - Start Honeycomb in background
+${killScript} - Kill all running Honeycomb instances
diff --git a/common/common-scripts/src/main/resources/scripts/forkScript b/common/common-scripts/src/main/resources/scripts/forkScript
new file mode 100644
index 000000000..443ff0dfe
--- /dev/null
+++ b/common/common-scripts/src/main/resources/scripts/forkScript
@@ -0,0 +1,2 @@
+#!/bin/sh -
+\$(dirname \$0)/honeycomb & \ No newline at end of file
diff --git a/common/common-scripts/src/main/resources/scripts/killScript b/common/common-scripts/src/main/resources/scripts/killScript
new file mode 100644
index 000000000..a32aaa6b6
--- /dev/null
+++ b/common/common-scripts/src/main/resources/scripts/killScript
@@ -0,0 +1,2 @@
+#!/bin/sh -
+kill `ps aux | grep 'java.*honeycomb' | awk '{print \$2}' \ No newline at end of file
diff --git a/common/common-scripts/src/main/resources/scripts/startScript b/common/common-scripts/src/main/resources/scripts/startScript
new file mode 100644
index 000000000..94aec859e
--- /dev/null
+++ b/common/common-scripts/src/main/resources/scripts/startScript
@@ -0,0 +1,13 @@
+#!/bin/sh -
+STATUS=100
+
+while [ \$STATUS -eq 100 ]
+do
+ ${exec}
+ STATUS=\$?
+ echo "Honeycomb exited with status: \$STATUS"
+ if [ \$STATUS -eq 100 ]
+ then
+ echo "Restarting..."
+ fi
+done \ No newline at end of file