DMAAP-83 Initial code import
[dmaap/buscontroller.git] / misc / havecert.tmpl
diff --git a/misc/havecert.tmpl b/misc/havecert.tmpl
new file mode 100644 (file)
index 0000000..00a0a34
--- /dev/null
@@ -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