28 lines
386 B
Plaintext
Executable File
28 lines
386 B
Plaintext
Executable File
#!/sbin/openrc-run
|
|
|
|
description="FrontlineSMS docker container"
|
|
|
|
depend() {
|
|
need docker
|
|
}
|
|
|
|
start() {
|
|
/usr/bin/docker run -d --rm \
|
|
--name flsms \
|
|
-h flsms \
|
|
-v /srv/flsms/data:/srv/flsms/.frontlinesms2 \
|
|
flsms
|
|
}
|
|
|
|
start_post() {
|
|
/usr/bin/spotter-appmgr register-proxy flsms
|
|
}
|
|
|
|
stop_pre() {
|
|
/usr/bin/spotter-appmgr unregister-proxy flsms
|
|
}
|
|
|
|
stop() {
|
|
/usr/bin/docker stop flsms
|
|
}
|