Spotter-VM/lxc-apps/gnuhealth/install/etc/init.d/gnuhealth

24 lines
250 B
Plaintext
Executable File

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