2018-01-18 13:39:39 +01:00
|
|
|
#!/sbin/openrc-run
|
|
|
|
|
|
|
|
description="Pan.do/ra docker container"
|
|
|
|
|
|
|
|
depend() {
|
2018-04-29 20:48:57 +02:00
|
|
|
need docker postfix postgres rabbitmq
|
2018-01-18 13:39:39 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
start() {
|
2018-01-27 14:08:19 +01:00
|
|
|
/usr/bin/docker run -d --rm \
|
|
|
|
--name pandora \
|
|
|
|
-h pandora \
|
2018-02-03 13:36:09 +01:00
|
|
|
--link postfix \
|
2018-01-27 14:08:19 +01:00
|
|
|
--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
|
|
|
}
|
|
|
|
|
2018-03-25 23:18:24 +02:00
|
|
|
start_post() {
|
2018-09-04 21:42:26 +02:00
|
|
|
/usr/bin/vmmgr register-proxy pandora
|
2018-04-29 20:48:57 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
stop_pre() {
|
2018-09-04 21:42:26 +02:00
|
|
|
/usr/bin/vmmgr unregister-proxy pandora
|
2018-03-25 23:18:24 +02:00
|
|
|
}
|
|
|
|
|
2018-01-18 13:39:39 +01:00
|
|
|
stop() {
|
|
|
|
/usr/bin/docker stop pandora
|
|
|
|
}
|