Spotter-VM/crisiscleanup/setup/etc/init.d/crisiscleanup
2018-09-12 16:16:38 +02:00

30 lines
480 B
Plaintext

#!/sbin/openrc-run
description="Crisis Cleanup docker container"
depend() {
need docker postfix postgres
}
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/bin/vmmgr register-proxy crisiscleanup
}
stop_pre() {
/usr/bin/vmmgr unregister-proxy crisiscleanup
}
stop() {
/usr/bin/docker stop crisiscleanup
}