Spotter-VM/frontlinesms/setup/etc/init.d/frontlinesms

28 lines
424 B
Plaintext
Executable File

#!/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
}