Spotter-VM/motech/setup/etc/init.d/motech
2018-09-13 13:39:25 +02:00

31 lines
445 B
Plaintext
Executable File

#!/sbin/openrc-run
description="Motech docker container"
depend() {
need docker activemq postfix postgres
}
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/bin/vmmgr register-proxy motech
}
stop_pre() {
/usr/bin/vmmgr unregister-proxy motech
}
stop() {
/usr/bin/docker stop motech
}