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

24 lines
268 B
Plaintext
Executable File

#!/sbin/openrc-run
description="GNU Health container"
depend() {
need postgres
}
start() {
lxc-start gnuhealth
}
start_post() {
/usr/bin/vmmgr register-proxy gnuhealth
}
stop_pre() {
/usr/bin/vmmgr unregister-proxy gnuhealth
}
stop() {
lxc-stop gnuhealth
}