From ffa2a169ea98fb54a29d90ca158059e79e2816ba Mon Sep 17 00:00:00 2001 From: Carlos Konstanski Date: Mon, 13 Nov 2017 16:50:55 -0700 Subject: initial commit --- templates/ci/openbook.redhat | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100755 templates/ci/openbook.redhat (limited to 'templates/ci/openbook.redhat') 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 -- cgit v1.3