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

28 lines
442 B
Plaintext
Raw Normal View History

2018-04-21 22:43:57 +02:00
#!/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
}