summaryrefslogtreecommitdiff
path: root/salt/openbook/ci/files/openbook.redhat
blob: 571894afad387511407c4f832fd7db37ffb912a4 (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
27
28
29
#!/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
        ;;
    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