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

24 lines
219 B
Plaintext
Raw Normal View History

2017-12-26 09:33:47 +01:00
#!/sbin/openrc-run
2018-09-13 19:27:23 +02:00
description="CTS container"
2017-12-26 09:33:47 +01:00
depend() {
need postgres
2017-12-26 09:33:47 +01:00
}
start() {
2018-09-13 19:27:23 +02:00
lxc-start cts
2017-12-26 09:33:47 +01:00
}
start_post() {
vmmgr register-proxy cts
}
stop_pre() {
vmmgr unregister-proxy cts
}
2017-12-26 09:33:47 +01:00
stop() {
2018-09-13 19:27:23 +02:00
lxc-stop cts
2017-12-26 09:33:47 +01:00
}