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

31 lines
487 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/www/conf \
seeddms
}
start_post() {
/usr/bin/spotter-appmgr register-proxy seeddms
}
stop_pre() {
/usr/bin/spotter-appmgr unregister-proxy seeddms
}
stop() {
/usr/bin/docker stop seeddms
}