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.redhat.debug | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 salt/openbook/ci/files/openbook.redhat.debug (limited to 'salt/openbook/ci/files/openbook.redhat.debug') diff --git a/salt/openbook/ci/files/openbook.redhat.debug b/salt/openbook/ci/files/openbook.redhat.debug new file mode 100644 index 0000000..b91bd94 --- /dev/null +++ b/salt/openbook/ci/files/openbook.redhat.debug @@ -0,0 +1,26 @@ +#!/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*) + {{ 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