#!/sbin/openrc-run description="OpenMapKit docker container" depend() { need docker net use dns logger netmount } start() { /usr/bin/docker run -d --rm \ --name openmapkit \ -h openmapkit \ -v /srv/openmapkit/conf/settings.js:/srv/openmapkit/settings.js \ -v /srv/openmapkit/data:/srv/openmapkit/data \ openmapkit } start_post() { /usr/local/bin/spotter-appmgr update-hosts openmapkit } stop() { /usr/bin/docker stop openmapkit }