2018-01-23 18:18:46 +01:00
|
|
|
#!/sbin/openrc-run
|
|
|
|
|
2018-09-13 21:14:53 +02:00
|
|
|
description="Motech container"
|
2018-01-23 18:18:46 +01:00
|
|
|
|
|
|
|
depend() {
|
2018-09-14 10:41:00 +02:00
|
|
|
need activemq postgres
|
2018-01-23 18:18:46 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
start() {
|
2018-09-13 21:14:53 +02:00
|
|
|
lxc-start motech
|
2018-01-23 18:18:46 +01:00
|
|
|
}
|
|
|
|
|
2018-03-25 23:13:55 +02:00
|
|
|
start_post() {
|
2018-09-04 21:42:26 +02:00
|
|
|
/usr/bin/vmmgr register-proxy motech
|
2018-04-29 20:48:57 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
stop_pre() {
|
2018-09-04 21:42:26 +02:00
|
|
|
/usr/bin/vmmgr unregister-proxy motech
|
2018-03-25 23:13:55 +02:00
|
|
|
}
|
|
|
|
|
2018-01-23 18:18:46 +01:00
|
|
|
stop() {
|
2018-09-13 21:14:53 +02:00
|
|
|
lxc-stop motech
|
2018-01-23 18:18:46 +01:00
|
|
|
}
|