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

24 lines
268 B
Plaintext
Raw Normal View History

2017-12-29 16:31:48 +01:00
#!/sbin/openrc-run
2018-09-13 20:32:57 +02:00
description="GNU Health container"
2017-12-29 16:31:48 +01:00
depend() {
need postgres
2017-12-29 16:31:48 +01:00
}
start() {
2018-09-13 20:32:57 +02:00
lxc-start gnuhealth
2017-12-29 16:31:48 +01:00
}
start_post() {
2018-09-04 21:42:26 +02:00
/usr/bin/vmmgr register-proxy gnuhealth
}
stop_pre() {
2018-09-04 21:42:26 +02:00
/usr/bin/vmmgr unregister-proxy gnuhealth
}
2017-12-29 16:31:48 +01:00
stop() {
2018-09-13 20:32:57 +02:00
lxc-stop gnuhealth
2017-12-29 16:31:48 +01:00
}