#!/sbin/openrc-run

description="Crisis Cleanup container"

depend() {
	need cgroups postgres
}

start() {
	lxc-start crisiscleanup
}

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

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

stop() {
	lxc-stop crisiscleanup
}
