summaryrefslogtreecommitdiff
path: root/templates/ci/openbook.ubuntu
blob: 0689872cf53973b713180a2e8a87a4d1ff2c240b (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
#!/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*)
        /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