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

17 lines
371 B
Plaintext
Executable File

#!/sbin/openrc-run
description="CKAN DataPusher docker container"
depend() {
need docker net
use dns logger netmount
}
start() {
/usr/bin/docker run -d --rm --name ckan-datapusher -p 127.0.0.1:9004:8004 -v /srv/ckan-datapusher/conf:/etc/ckan-datapusher -v /srv/ckan-datapusher/data:/srv/ckan-datapusher/data ckan-datapusher
}
stop() {
/usr/bin/docker stop ckan
}