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