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

32 lines
495 B
Plaintext
Executable File

#!/sbin/openrc-run
description="Pan.do/ra docker container"
depend() {
need docker postfix postgres rabbitmq
}
start() {
/usr/bin/docker run -d --rm \
--name pandora \
-h pandora \
--link postfix \
--link postgres \
--link rabbitmq \
-v /srv/pandora/conf:/srv/pandora/conf \
-v /srv/pandora/data:/srv/pandora/data \
pandora
}
start_post() {
/usr/bin/vmmgr register-proxy pandora
}
stop_pre() {
/usr/bin/vmmgr unregister-proxy pandora
}
stop() {
/usr/bin/docker stop pandora
}