#!/sbin/openrc-run description="CTS docker container" depend() { need docker postgres } start() { /usr/bin/docker run -d --rm \ --name cts \ -h cts \ --link postgres \ -v /srv/cts/conf:/srv/cts/cts/settings \ cts } start_post() { /usr/bin/spotter-appmgr register-proxy cts } stop_pre() { /usr/bin/spotter-appmgr unregister-proxy cts } stop() { /usr/bin/docker stop cts }