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

24 lines
288 B
Plaintext
Raw Normal View History

2018-04-21 22:30:25 +02:00
#!/sbin/openrc-run
2018-09-13 18:31:19 +02:00
description="Crisis Cleanup container"
2018-04-21 22:30:25 +02:00
depend() {
need postgres
2018-04-21 22:30:25 +02:00
}
start() {
2018-09-13 18:31:19 +02:00
lxc-start crisiscleanup
2018-04-21 22:30:25 +02:00
}
start_post() {
2018-09-04 21:42:26 +02:00
/usr/bin/vmmgr register-proxy crisiscleanup
2018-04-21 22:30:25 +02:00
}
stop_pre() {
2018-09-04 21:42:26 +02:00
/usr/bin/vmmgr unregister-proxy crisiscleanup
2018-04-21 22:30:25 +02:00
}
stop() {
2018-09-13 18:31:19 +02:00
lxc-stop crisiscleanup
2018-04-21 22:30:25 +02:00
}