summaryrefslogtreecommitdiff
path: root/salt/openbook/ci/files/openbook.redhat.start
blob: d4e4937709a565fa52932c6741739fc110be1188 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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"] }} start
        ;;
    stop*)
        {{ pillar["ansible"]["dirs"]["output"]["name"] }}/{{ pillar["ci"]["files"]["openbookctl"]["name"] }} stop
        ;;
    *)
        {{ pillar["ansible"]["dirs"]["output"]["name"] }}/{{ pillar["ci"]["files"]["openbookctl"]["name"] }} help
        ;;
esac