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

24 lines
288 B
Plaintext

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