#!/sbin/openrc-run

depend() {
	need docker tsdns
}

start_pre() {
	 until docker info >/dev/null 2>&1; do
		  sleep 2
	 done
    docker pull git.sfclub.cc/cloud/workspace-image:latest
}

command="/usr/bin/bubble"
command_args="-config /daemon/config.yaml 2>&1"
pidfile="/run/${RC_SVCNAME}.pid"
command_background=true
output_log="/data/bubble.log"
