28 lines
442 B
Plaintext
28 lines
442 B
Plaintext
|
#!/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
|
||
|
}
|