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

22 lines
414 B
Plaintext
Executable File

#!/sbin/openrc-run
description="CKAN DataPusher docker container"
depend() {
need docker
}
start() {
/usr/bin/docker run -d --rm \
--name ckan-datapusher \
-h ckan-datapusher \
-v /etc/ssl/services.pem:/etc/ssl/services.pem \
-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-datapusher
}