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

28 lines
442 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/spotter-appmgr register-proxy frontlinesms
}
stop_pre() {
/usr/bin/spotter-appmgr unregister-proxy frontlinesms
}
stop() {
/usr/bin/docker stop frontlinesms
}