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

31 lines
453 B
Plaintext
Raw Normal View History

2018-01-23 18:18:46 +01:00
#!/sbin/openrc-run
description="Motech docker container"
depend() {
need docker activemq postfix postgres
2018-01-23 18:18:46 +01:00
}
start() {
/usr/bin/docker run -d --rm \
--name motech \
-h motech \
--link activemq \
2018-02-03 13:19:24 +01:00
--link postfix \
--link postgres \
-v /srv/motech/conf:/srv/tomcat/.motech \
motech
2018-01-23 18:18:46 +01:00
}
start_post() {
2018-09-03 17:24:48 +02:00
/usr/bin/vm-appmgr register-proxy motech
}
stop_pre() {
2018-09-03 17:24:48 +02:00
/usr/bin/vm-appmgr unregister-proxy motech
}
2018-01-23 18:18:46 +01:00
stop() {
/usr/bin/docker stop motech
}