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

32 lines
503 B
Plaintext
Raw Normal View History

2018-01-18 13:39:39 +01:00
#!/sbin/openrc-run
description="Pan.do/ra docker container"
depend() {
need docker postfix postgres rabbitmq
2018-01-18 13:39:39 +01:00
}
start() {
/usr/bin/docker run -d --rm \
--name pandora \
-h pandora \
2018-02-03 13:36:09 +01:00
--link postfix \
--link postgres \
--link rabbitmq \
-v /srv/pandora/conf:/srv/pandora/conf \
-v /srv/pandora/data:/srv/pandora/data \
pandora
2018-01-18 13:39:39 +01:00
}
start_post() {
2018-09-03 17:24:48 +02:00
/usr/bin/vm-appmgr register-proxy pandora
}
stop_pre() {
2018-09-03 17:24:48 +02:00
/usr/bin/vm-appmgr unregister-proxy pandora
}
2018-01-18 13:39:39 +01:00
stop() {
/usr/bin/docker stop pandora
}