diff options
Diffstat (limited to 'common/common-scripts/src/main/resources')
6 files changed, 53 insertions, 0 deletions
diff --git a/common/common-scripts/src/main/resources/modules/modulesListDefaultContent b/common/common-scripts/src/main/resources/modules/modulesListDefaultContent new file mode 100644 index 000000000..32c2bf878 --- /dev/null +++ b/common/common-scripts/src/main/resources/modules/modulesListDefaultContent @@ -0,0 +1,7 @@ +// Generated from ${groupId}/${artifactId}/${version} +// +// This distribution does not define any own modules. +// In order to do so either distribution.modules property must be defined in distribution pom.xml, +// containing list of desired modules to start, or this file can be directly edited with same effect. +// +// Note : Modules should be referenced by full class name, e.g: io.fd.test.SampleModule, and separated with comma.
\ No newline at end of file diff --git a/common/common-scripts/src/main/resources/readme/readmeDefaultContent b/common/common-scripts/src/main/resources/readme/readmeDefaultContent new file mode 100644 index 000000000..b50837275 --- /dev/null +++ b/common/common-scripts/src/main/resources/readme/readmeDefaultContent @@ -0,0 +1,3 @@ += ${artifactId} + +Overview of ${artifactId}
\ No newline at end of file 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 |