2018-01-08 15:06:11 +01:00
|
|
|
#!/sbin/openrc-run
|
|
|
|
|
|
|
|
description="SeedDMS docker container"
|
|
|
|
|
|
|
|
depend() {
|
2018-04-29 20:48:57 +02:00
|
|
|
need docker postfix postgres
|
2018-01-08 15:06:11 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
start() {
|
2018-01-27 14:08:19 +01:00
|
|
|
/usr/bin/docker run -d --rm \
|
|
|
|
--name seeddms \
|
|
|
|
-h seeddms \
|
2018-02-02 17:10:32 +01:00
|
|
|
--link postfix \
|
2018-01-27 14:08:19 +01:00
|
|
|
--link postgres \
|
|
|
|
-v /srv/seeddms/data:/srv/seeddms/data \
|
|
|
|
-v /srv/seeddms/conf:/srv/seeddms/www/conf \
|
|
|
|
seeddms
|
2018-01-08 15:06:11 +01:00
|
|
|
}
|
|
|
|
|
2018-03-25 23:20:57 +02:00
|
|
|
start_post() {
|
2018-04-29 20:48:57 +02:00
|
|
|
/usr/bin/spotter-appmgr register-proxy seeddms
|
|
|
|
}
|
|
|
|
|
|
|
|
stop_pre() {
|
|
|
|
/usr/bin/spotter-appmgr unregister-proxy seeddms
|
2018-03-25 23:20:57 +02:00
|
|
|
}
|
|
|
|
|
2018-01-08 15:06:11 +01:00
|
|
|
stop() {
|
|
|
|
/usr/bin/docker stop seeddms
|
|
|
|
}
|