#!/sbin/openrc-run description="Crisis Cleanup docker container" depend() { need docker net postgres use dns logger netmount postfix } start() { /usr/bin/docker run -d --rm \ --name ccleanup \ -h ccleanup \ --link postfix \ --link postgres \ -v /srv/ccleanup/conf:/srv/ccleanup/config \ ccleanup } start_post() { /usr/local/bin/spotter-appmgr update-hosts ccleanup } stop() { /usr/bin/docker stop ccleanup }