21 lines
262 B
Plaintext
Executable File
21 lines
262 B
Plaintext
Executable File
#!/sbin/openrc-run
|
|
|
|
description="Solr docker container"
|
|
|
|
depend() {
|
|
need docker net
|
|
use dns logger netmount
|
|
}
|
|
|
|
start() {
|
|
/usr/bin/docker run -d --rm \
|
|
--name solr \
|
|
-h solr \
|
|
-v /srv/solr/data:/var/lib/solr \
|
|
solr
|
|
}
|
|
|
|
stop() {
|
|
/usr/bin/docker stop solr
|
|
}
|