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

29 lines
463 B
Plaintext
Raw Normal View History

2018-04-21 23:10:55 +02:00
#!/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() {
2018-09-04 21:42:26 +02:00
/usr/bin/vmmgr register-proxy openmapkit
2018-04-21 23:10:55 +02:00
}
stop_pre() {
2018-09-04 21:42:26 +02:00
/usr/bin/vmmgr unregister-proxy openmapkit
2018-04-21 23:10:55 +02:00
}
stop() {
/usr/bin/docker stop openmapkit
}