summaryrefslogtreecommitdiff
path: root/templates/ci/openbook.redhat
diff options
context:
space:
mode:
Diffstat (limited to 'templates/ci/openbook.redhat')
-rwxr-xr-xtemplates/ci/openbook.redhat29
1 files changed, 29 insertions, 0 deletions
diff --git a/templates/ci/openbook.redhat b/templates/ci/openbook.redhat
new file mode 100755
index 0000000..c4d3040
--- /dev/null
+++ b/templates/ci/openbook.redhat
@@ -0,0 +1,29 @@
+#!/bin/bash
+
+# openbook
+#
+# chkconfig: 2345 10 90
+# description: Manage the Openbook application
+#
+### BEGIN INIT INFO
+# Provides: openbook
+# Required-Start: docker
+# Required-Stop: docker
+# Short-Description: Bring up/down networking
+# Description: Manage the Openbook application
+### END INIT INFO
+
+case $1 in
+ start*)
+ /opt/openbook/openbookctl start
+ ;;
+ stop*)
+ /opt/openbook/openbookctl stop
+ ;;
+ test_database*)
+ /opt/openbook/openbookctl test_database
+ ;;
+ *)
+ /opt/openbook/openbookctl help
+ ;;
+esac