#!/sbin/openrc-run

description="FrontlineSMS container"

depend() {
	need cgroups
}

start() {
	lxc-start frontlinesms
}

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

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

stop() {
	lxc-stop frontlinesms
}
