From b37e172a44261cca9e3b44b3b23fbd134aaab34e Mon Sep 17 00:00:00 2001 From: Carlos Konstanski Date: Tue, 6 Mar 2018 19:50:01 -0700 Subject: Support pure systemd hosts Issue: IS-75 --- salt/openbook/ci/files/openbook.ubuntu.debug | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 salt/openbook/ci/files/openbook.ubuntu.debug (limited to 'salt/openbook/ci/files/openbook.ubuntu.debug') 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 -- cgit v1.3