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

18 lines
372 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
use dns logger netmount
after postgres
}
start() {
2018-01-18 13:59:24 +01:00
/usr/bin/docker run -d --rm --name crisiscleanup -h crisiscleanup --link postgres -p 127.0.0.1:9005:8005 -v /srv/crisiscleanup/conf:/srv/crisiscleanup/config crisiscleanup
2017-12-25 11:43:06 +01:00
}
stop() {
/usr/bin/docker stop crisiscleanup
}