Spotter-VM/sahana-demo/install/etc/init.d/sahana-demo

24 lines
264 B
Plaintext
Executable File

#!/sbin/openrc-run
description="Sahana Eden Demo container"
depend() {
need postgres
}
start() {
lxc-start sahana-demo
}
start_post() {
vmmgr register-proxy sahana-demo
}
stop_pre() {
vmmgr unregister-proxy sahana-demo
}
stop() {
lxc-stop sahana-demo
}