Spotter-VM/lxc-apps/odoo/install/etc/init.d/odoo

24 lines
224 B
Plaintext
Executable File

#!/sbin/openrc-run
description="Odoo container"
depend() {
need postgres
}
start() {
lxc-start odoo
}
start_post() {
vmmgr register-proxy odoo
}
stop_pre() {
vmmgr unregister-proxy odoo
}
stop() {
lxc-stop odoo
}