-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moving fedora/solr startup to init script
- Loading branch information
Showing
2 changed files
with
29 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/sh | ||
|
||
case "$1" in | ||
start) | ||
echo "Starting Fedora and Solr" | ||
su - vagrant -c "/bin/sh -c 'cd /home/vagrant/curation-concerns-demo; nohup fcrepo_wrapper -p 8984 -i tmp > log/fedora.log 2>&1 &'" | ||
su - vagrant -c "/bin/sh -c 'cd /home/vagrant/curation-concerns-demo; nohup solr_wrapper --version 5.4.1 -d solr/config/ -p 8983 -n hydra-development --download_path tmp/solr.war -i tmp/solr > log/solr.log 2>&1 &'" | ||
;; | ||
stop) | ||
;; | ||
esac | ||
|
||
printf 'waiting for solr and fedora' | ||
until $(curl --output /dev/null --silent --head --fail http://localhost:8983/solr); do | ||
printf '.' | ||
sleep 1 | ||
done | ||
until $(curl --output /dev/null --silent --head --fail http://localhost:8984/rest); do | ||
printf '.' | ||
sleep 1 | ||
done | ||
echo " done" | ||
|
||
exit 0 |