#!/sbin/openrc-run description="FrontlineSMS docker container" depend() { need docker } start() { /usr/bin/docker run -d --rm \ --name frontlinesms \ -h frontlinesms \ -v /srv/frontlinesms/data:/srv/frontlinesms/.frontlinesms2 \ frontlinesms } start_post() { /usr/bin/vmmgr register-proxy frontlinesms } stop_pre() { /usr/bin/vmmgr unregister-proxy frontlinesms } stop() { /usr/bin/docker stop frontlinesms }