29 lines
480 B
Plaintext
Executable File
29 lines
480 B
Plaintext
Executable File
#!/sbin/openrc-run
|
|
|
|
description="Pan.do/ra docker container"
|
|
|
|
depend() {
|
|
need docker net postgres rabbitmq
|
|
use dns logger netmount postfix
|
|
}
|
|
|
|
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/local/bin/spotter-appmgr update-hosts pandora
|
|
}
|
|
|
|
stop() {
|
|
/usr/bin/docker stop pandora
|
|
}
|