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

24 lines
288 B
Plaintext
Executable File

#!/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
}