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

24 lines
270 B
Plaintext
Executable File

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