28 lines
431 B
Plaintext
Executable File
28 lines
431 B
Plaintext
Executable File
#!/sbin/openrc-run
|
|
|
|
description="Motech docker container"
|
|
|
|
depend() {
|
|
need docker net postgres activemq
|
|
use dns logger netmount postfix
|
|
}
|
|
|
|
start() {
|
|
/usr/bin/docker run -d --rm \
|
|
--name motech \
|
|
-h motech \
|
|
--link activemq \
|
|
--link postfix \
|
|
--link postgres \
|
|
-v /srv/motech/conf:/srv/tomcat/.motech \
|
|
motech
|
|
}
|
|
|
|
start_post() {
|
|
/usr/local/bin/spotter-appmgr update-proxy motech
|
|
}
|
|
|
|
stop() {
|
|
/usr/bin/docker stop motech
|
|
}
|