#!/sbin/openrc-run # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ depend() { docker } start() { ebegin "openbook: start" docker-compose -f /root/docker-registry/docker-compose.yaml up -d eend $? } stop() { ebegin "openstack: stop" docker-compose -f /root/docker-registry/docker-compose.yaml stop docker-compose -f /root/docker-registry/docker-compose.yaml rm -f eend $? } restart() { stop start } status() { docker-compose -f /root/docker-registry/docker-compose.yaml ps }