DMAAP-83 Initial code import

Change-Id: I7807b0f59bd2acb55a2df98632112f28a9f64f74
Signed-off-by: ATT default cloud user <dgl@research.att.com>
diff --git a/misc/havecert.tmpl b/misc/havecert.tmpl
new file mode 100644
index 0000000..00a0a34
--- /dev/null
+++ b/misc/havecert.tmpl
@@ -0,0 +1,11 @@
+#!/bin/bash
+cat <<!EOF
+TZ=GMT0
+cd /opt/app/dmaapbc;
+if [ -f ${DMAAPBC_KSTOREFILE:-etc/keystore} ]
+then
+	exit 0
+fi
+echo `date '+%F %T,000'` WARN Certificate file "${DMAAPBC_KSTOREFILE:-etc/keystore}" is missing >>${DMAAPBC_LOGS:-logs}/dmaapbc.log
+exit 1
+!EOF