#!/sbin/openrc-run description="Sahana Eden docker container" depend() { need docker postfix postgres } start() { /usr/bin/docker run -d --rm \ --name sahana \ -h sahana \ --link postfix \ --link postgres \ -v /srv/sahana/conf:/srv/web2py/applications/eden/models \ -v /srv/sahana/data/Spotter:/srv/web2py/applications/eden/modules/templates/Spotter \ -v /srv/sahana/data/databases:/srv/web2py/applications/eden/databases \ -v /srv/sahana/data/uploads:/srv/web2py/applications/eden/uploads \ sahana } start_post() { /usr/bin/vmmgr register-proxy sahana } stop_pre() { /usr/bin/vmmgr unregister-proxy sahana } stop() { /usr/bin/docker stop sahana }