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

24 lines
282 B
Plaintext
Executable File

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