summaryrefslogtreecommitdiff
path: root/salt/openbook/ci/files/openbook.ubuntu
diff options
context:
space:
mode:
authorCarlos Konstanski <ckonstanski@pippiandcarlos.com>2017-08-30 13:09:56 -0600
committerCarlos Konstanski <ckonstanski@pippiandcarlos.com>2017-08-30 13:09:56 -0600
commit649f0dd9c5ca586d8b637400dd19c0c4059447d6 (patch)
tree5ccc992a3aa5de1bcb510911dfdb21e6a54bd197 /salt/openbook/ci/files/openbook.ubuntu
initial commit
Diffstat (limited to 'salt/openbook/ci/files/openbook.ubuntu')
-rw-r--r--salt/openbook/ci/files/openbook.ubuntu25
1 files changed, 25 insertions, 0 deletions
diff --git a/salt/openbook/ci/files/openbook.ubuntu b/salt/openbook/ci/files/openbook.ubuntu
new file mode 100644
index 0000000..cda042d
--- /dev/null
+++ b/salt/openbook/ci/files/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*)
+ {{ pillar["ansible"]["dirs"]["output"]["name"] }}/{{ pillar["ci"]["files"]["openbookctl"]["name"] }} start
+ ;;
+ stop*)
+ {{ pillar["ansible"]["dirs"]["output"]["name"] }}/{{ pillar["ci"]["files"]["openbookctl"]["name"] }} stop
+ ;;
+ test_database*)
+ {{ pillar["ansible"]["dirs"]["output"]["name"] }}/{{ pillar["ci"]["files"]["openbookctl"]["name"] }} test_database
+ ;;
+ *)
+ {{ pillar["ansible"]["dirs"]["output"]["name"] }}/{{ pillar["ci"]["files"]["openbookctl"]["name"] }} help
+ ;;
+esac