#!/sbin/openrc-run

description="Motech container"

depend() {
	need cgroups activemq postgres
}

start() {
	lxc-start motech
}

start_post() {
	/usr/bin/vmmgr register-proxy motech
}

stop_pre() {
	/usr/bin/vmmgr unregister-proxy motech
}

stop() {
	lxc-stop motech
}
