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

24 lines
386 B
Plaintext
Raw Normal View History

2017-12-29 16:31:48 +01:00
#!/sbin/openrc-run
description="GNU Health docker container"
depend() {
need docker net
use dns logger netmount
after postgres
}
start() {
/usr/bin/docker run -d --rm \
--name gnuhealth \
-h gnuhealth \
--link postgres \
-p 127.0.0.1:8008:8008 \
-v /srv/gnuhealth/conf:/srv/gnuhealth/gnuhealth/tryton/server/config \
gnuhealth
2017-12-29 16:31:48 +01:00
}
stop() {
/usr/bin/docker stop gnuhealth
}