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

18 lines
348 B
Plaintext
Raw Normal View History

2018-01-23 18:18:46 +01:00
#!/sbin/openrc-run
description="Motech docker container"
depend() {
need docker net
use dns logger netmount
after activemq postgres
}
start() {
/usr/bin/docker run -d --rm --name motech -h motech --link activemq --link postgres -p 127.0.0.1:9013:8013 -v /srv/motech/conf:/srv/tomcat/.motech motech
}
stop() {
/usr/bin/docker stop motech
}