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

34 lines
535 B
Plaintext
Raw Normal View History

2017-12-19 22:17:12 +01:00
#!/sbin/openrc-run
description="CKAN docker container"
depend() {
need docker net
2018-01-30 16:34:29 +01:00
use dns logger netmount postfix
after postgres redis solr ckan-datapusher
2017-12-19 22:17:12 +01:00
}
start_pre() {
/srv/ckan/update-ip.sh
}
2017-12-19 22:17:12 +01:00
start() {
/usr/bin/docker run -d --rm \
--name ckan \
-h ckan \
2018-01-30 16:34:29 +01:00
--link ckan-datapusher \
--link postfix \
--link postgres \
--link redis \
--link solr \
--link ckan-datapusher \
-p 127.0.0.1:8003:8003 \
-v /srv/ckan/conf:/etc/ckan \
-v /srv/ckan/data:/srv/ckan/storage \
ckan
2017-12-19 22:17:12 +01:00
}
stop() {
/usr/bin/docker stop ckan
}