2018-09-14 08:53:27 +02:00
|
|
|
#!/sbin/openrc-run
|
|
|
|
|
|
|
|
description="SAMBRO container"
|
|
|
|
|
|
|
|
depend() {
|
2018-09-14 10:41:00 +02:00
|
|
|
need postgres
|
2018-09-14 08:53:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
start() {
|
|
|
|
lxc-start sambro
|
|
|
|
}
|
|
|
|
|
|
|
|
start_post() {
|
|
|
|
/usr/bin/vmmgr register-proxy sambro
|
|
|
|
}
|
|
|
|
|
|
|
|
stop_pre() {
|
|
|
|
/usr/bin/vmmgr unregister-proxy sambro
|
|
|
|
}
|
|
|
|
|
|
|
|
stop() {
|
|
|
|
lxc-stop sambro
|
|
|
|
}
|