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

27 lines
459 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 \
-v /srv/crisiscleanup/conf:/srv/crisiscleanup/config \
crisiscleanup
}
start_post() {
/usr/local/bin/spotter-appmgr update-hosts crisiscleanup
}
stop() {
/usr/bin/docker stop crisiscleanup
}