22 lines
321 B
Plaintext
Executable File
22 lines
321 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 ckandp \
|
|
-h ckandp \
|
|
-v /srv/ckandp/conf:/etc/ckandp \
|
|
-v /srv/ckandp/data:/srv/ckandp/data \
|
|
ckandp
|
|
}
|
|
|
|
stop() {
|
|
/usr/bin/docker stop ckandp
|
|
}
|