diff options
| author | Carlos Konstanski <ckonstanski@pippiandcarlos.com> | 2017-11-13 16:50:55 -0700 |
|---|---|---|
| committer | Carlos Konstanski <ckonstanski@pippiandcarlos.com> | 2017-11-13 16:50:55 -0700 |
| commit | ffa2a169ea98fb54a29d90ca158059e79e2816ba (patch) | |
| tree | 018461d031b71178fa48b9672d8e39bac4de1270 /templates/ci/openbook.gentoo | |
initial commit
Diffstat (limited to 'templates/ci/openbook.gentoo')
| -rwxr-xr-x | templates/ci/openbook.gentoo | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/templates/ci/openbook.gentoo b/templates/ci/openbook.gentoo new file mode 100755 index 0000000..430d70d --- /dev/null +++ b/templates/ci/openbook.gentoo @@ -0,0 +1,25 @@ +#!/sbin/openrc-run + +extra_commands=test_database + +depend() { + need docker +} + +start() { + ebegin "Starting Openbook" + /opt/openbook/openbookctl start + eend $? +} + +stop() { + ebegin "Stopping Openbook" + /opt/openbook/openbookctl stop + eend $? +} + +test_database() { + ebegin "Testing database" + /opt/openbook/openbookctl test_database + eend $? +} |
