18 lines
348 B
Plaintext
18 lines
348 B
Plaintext
|
#!/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
|
||
|
}
|