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

24 lines
257 B
Plaintext
Raw Normal View History

2018-01-27 22:26:37 +01:00
#!/sbin/openrc-run
2018-09-13 22:09:01 +02:00
description="Sahana Eden container"
2018-01-27 22:26:37 +01:00
depend() {
need postgres
2018-01-27 22:26:37 +01:00
}
start() {
2018-09-13 22:09:01 +02:00
lxc-start sahana
2018-01-27 22:26:37 +01:00
}
start_post() {
2018-09-04 21:42:26 +02:00
/usr/bin/vmmgr register-proxy sahana
}
stop_pre() {
2018-09-04 21:42:26 +02:00
/usr/bin/vmmgr unregister-proxy sahana
}
2018-01-27 22:26:37 +01:00
stop() {
2018-09-13 22:09:01 +02:00
lxc-stop sahana
2018-01-27 22:26:37 +01:00
}