summaryrefslogtreecommitdiff
path: root/salt/openbook/ci/files/openbook.ubuntu.debug
diff options
context:
space:
mode:
Diffstat (limited to 'salt/openbook/ci/files/openbook.ubuntu.debug')
-rw-r--r--salt/openbook/ci/files/openbook.ubuntu.debug22
1 files changed, 22 insertions, 0 deletions
diff --git a/salt/openbook/ci/files/openbook.ubuntu.debug b/salt/openbook/ci/files/openbook.ubuntu.debug
new file mode 100644
index 0000000..b99726f
--- /dev/null
+++ b/salt/openbook/ci/files/openbook.ubuntu.debug
@@ -0,0 +1,22 @@
+#!/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"] }} debug
+ ;;
+ stop*)
+ {{ pillar["ansible"]["dirs"]["output"]["name"] }}/{{ pillar["ci"]["files"]["openbookctl"]["name"] }} stop
+ ;;
+ *)
+ {{ pillar["ansible"]["dirs"]["output"]["name"] }}/{{ pillar["ci"]["files"]["openbookctl"]["name"] }} help
+ ;;
+esac