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

24 lines
261 B
Plaintext
Executable File

#!/sbin/openrc-run
description="Motech container"
depend() {
need activemq postgres
}
start() {
lxc-start motech
}
start_post() {
/usr/bin/vmmgr register-proxy motech
}
stop_pre() {
/usr/bin/vmmgr unregister-proxy motech
}
stop() {
lxc-stop motech
}