summaryrefslogtreecommitdiff
path: root/templates/ci/openbook.ubuntu
diff options
context:
space:
mode:
authorCarlos Konstanski <ckonstanski@pippiandcarlos.com>2017-11-13 16:50:55 -0700
committerCarlos Konstanski <ckonstanski@pippiandcarlos.com>2017-11-13 16:50:55 -0700
commitffa2a169ea98fb54a29d90ca158059e79e2816ba (patch)
tree018461d031b71178fa48b9672d8e39bac4de1270 /templates/ci/openbook.ubuntu
initial commit
Diffstat (limited to 'templates/ci/openbook.ubuntu')
-rwxr-xr-xtemplates/ci/openbook.ubuntu25
1 files changed, 25 insertions, 0 deletions
diff --git a/templates/ci/openbook.ubuntu b/templates/ci/openbook.ubuntu
new file mode 100755
index 0000000..02900fa
--- /dev/null
+++ b/templates/ci/openbook.ubuntu
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+### BEGIN INIT INFO
+# Provides: openbook
+# Required-Start: docker
+# Required-Stop: docker
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
+# Short-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