29 lines
481 B
Plaintext
29 lines
481 B
Plaintext
|
#!/sbin/openrc-run
|
||
|
|
||
|
description="OpenMapKit docker container"
|
||
|
|
||
|
depend() {
|
||
|
need docker
|
||
|
}
|
||
|
|
||
|
start() {
|
||
|
/usr/bin/docker run -d --rm \
|
||
|
--name openmapkit \
|
||
|
-h openmapkit \
|
||
|
-v /srv/openmapkit/conf/settings.js:/srv/openmapkit/settings.js \
|
||
|
-v /srv/openmapkit/data:/srv/openmapkit/data \
|
||
|
openmapkit
|
||
|
}
|
||
|
|
||
|
start_post() {
|
||
|
/usr/bin/spotter-appmgr register-proxy openmapkit
|
||
|
}
|
||
|
|
||
|
stop_pre() {
|
||
|
/usr/bin/spotter-appmgr unregister-proxy openmapkit
|
||
|
}
|
||
|
|
||
|
stop() {
|
||
|
/usr/bin/docker stop openmapkit
|
||
|
}
|