summaryrefslogtreecommitdiff
path: root/templates/ci/openbook.redhat
blob: a240b79f752eaa97009fc86aabcf34d1482ef0d1 (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
30
31
32
#!/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*)
        /opt/openbook/openbookctl start
        ;;
    debug*)
        /opt/openbook/openbookctl debug
        ;;
    stop*)
        /opt/openbook/openbookctl stop
        ;;
    test_database*)
        /opt/openbook/openbookctl test_database
        ;;
    *)
        /opt/openbook/openbookctl help
        ;;
esac