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

31 lines
465 B
Plaintext
Executable File

#!/sbin/openrc-run
description="SeedDMS docker container"
depend() {
need docker postfix postgres
}
start() {
/usr/bin/docker run -d --rm \
--name seeddms \
-h seeddms \
--link postfix \
--link postgres \
-v /srv/seeddms/data:/srv/seeddms/data \
-v /srv/seeddms/conf:/srv/seeddms/conf \
seeddms
}
start_post() {
/usr/bin/vmmgr register-proxy seeddms
}
stop_pre() {
/usr/bin/vmmgr unregister-proxy seeddms
}
stop() {
/usr/bin/docker stop seeddms
}