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

22 lines
453 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
2017-12-19 22:17:12 +01:00
use dns logger netmount
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() {
2018-01-18 13:59:24 +01:00
/usr/bin/docker run -d --rm --name ckan -h ckan --link postgres --link redis --link solr --link ckan-datapusher -p 127.0.0.1:9003: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
}