blob: 4a639d47aa82af0f5ae25fd8f598af6bc64f59dd (
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
|
#!/sbin/openrc-run
extra_commands=test_database
depend() {
need docker
}
start() {
ebegin "Starting Openbook"
{{ pillar["ansible"]["dirs"]["output"]["name"] }}/{{ pillar["ci"]["files"]["openbookctl"]["name"] }} start
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 $?
}
|