blob: 62dd27a52f31fd6efe7857ea055b4b0052a93334 (
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
|
#!/sbin/openrc-run
extra_commands="debug test_database"
depend() {
need docker
}
start() {
ebegin "Starting Openbook"
{{ pillar["ansible"]["dirs"]["output"]["name"] }}/{{ pillar["ci"]["files"]["openbookctl"]["name"] }} start
eend $?
}
debug() {
ebegin "Starting Openbook in debug mode"
{{ pillar["ansible"]["dirs"]["output"]["name"] }}/{{ pillar["ci"]["files"]["openbookctl"]["name"] }} debug
eend $?
}
stop() {
ebegin "Stopping Openbook"
{{ pillar["ansible"]["dirs"]["output"]["name"] }}/{{ pillar["ci"]["files"]["openbookctl"]["name"] }} stop
eend $?
}
test_database() {
ebegin "Testing database"
{{ pillar["ansible"]["dirs"]["output"]["name"] }}/{{ pillar["ci"]["files"]["openbookctl"]["name"] }} test_database
eend $?
}
|