24 lines
409 B
Plaintext
Executable File
24 lines
409 B
Plaintext
Executable File
#!/sbin/openrc-run
|
|
|
|
description="Crisis Cleanup docker container"
|
|
|
|
depend() {
|
|
need docker net postgres
|
|
use dns logger netmount postfix
|
|
}
|
|
|
|
start() {
|
|
/usr/bin/docker run -d --rm \
|
|
--name crisiscleanup \
|
|
-h crisiscleanup \
|
|
--link postfix \
|
|
--link postgres \
|
|
-p 127.0.0.1:8005:8005 \
|
|
-v /srv/crisiscleanup/conf:/srv/crisiscleanup/config \
|
|
crisiscleanup
|
|
}
|
|
|
|
stop() {
|
|
/usr/bin/docker stop crisiscleanup
|
|
}
|