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

25 lines
416 B
Plaintext
Raw Normal View History

2017-12-25 11:43:06 +01:00
#!/sbin/openrc-run
description="Crisis Cleanup docker container"
depend() {
need docker net
2018-01-30 17:34:20 +01:00
use dns logger netmount postfix
2017-12-25 11:43:06 +01:00
after postgres
}
start() {
/usr/bin/docker run -d --rm \
--name crisiscleanup \
-h crisiscleanup \
2018-01-30 17:34:20 +01:00
--link postfix \
--link postgres \
-p 127.0.0.1:8005:8005 \
-v /srv/crisiscleanup/conf:/srv/crisiscleanup/config \
crisiscleanup
2017-12-25 11:43:06 +01:00
}
stop() {
/usr/bin/docker stop crisiscleanup
}