#!/sbin/openrc-run

description="Mifos X container"

depend() {
	need cgroups mariadb
}

start() {
	lxc-start mifosx
}

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

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

stop() {
	lxc-stop mifosx
}
