Spotter-VM/crisiscleanup/setup/etc/init.d/crisiscleanup
2018-09-13 18:31:19 +02:00

24 lines
296 B
Plaintext

#!/sbin/openrc-run
description="Crisis Cleanup container"
depend() {
need cgroups 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
}