solr: Dependency fixes for service startup
This commit is contained in:
parent
53d6ac4bf2
commit
663e36dfc4
2 changed files with 10 additions and 3 deletions
|
@ -39,7 +39,7 @@ fi
|
|||
|
||||
start_solr() {
|
||||
# Check to see if Solr is running
|
||||
pgrep -u $SOLRUSER -f start.jar >/dev/null
|
||||
pgrep -u ${SOLRUSER} -f start.jar >/dev/null
|
||||
RUNNING=$?
|
||||
if [ $RUNNING -eq 0 ]; then
|
||||
echo "[FAILED]"
|
||||
|
|
|
@ -84,31 +84,37 @@ class solr {
|
|||
ensure => link,
|
||||
target => "/usr/local/share/solr/example/start.jar",
|
||||
require => File["/srv/solr/run"],
|
||||
before => Service["solr"],
|
||||
}
|
||||
file { "/srv/solr/run/contexts":
|
||||
ensure => link,
|
||||
target => "/usr/local/share/solr/example/contexts",
|
||||
require => File["/srv/solr/run"],
|
||||
before => Service["solr"],
|
||||
}
|
||||
file { "/srv/solr/run/etc":
|
||||
ensure => link,
|
||||
target => "/usr/local/share/solr/example/etc",
|
||||
require => File["/srv/solr/run"],
|
||||
before => Service["solr"],
|
||||
}
|
||||
file { "/srv/solr/run/lib":
|
||||
ensure => link,
|
||||
target => "/usr/local/share/solr/example/lib",
|
||||
require => File["/srv/solr/run"],
|
||||
before => Service["solr"],
|
||||
}
|
||||
file { "/srv/solr/run/resources":
|
||||
ensure => link,
|
||||
target => "/usr/local/share/solr/example/resources",
|
||||
require => File["/srv/solr/run"],
|
||||
before => Service["solr"],
|
||||
}
|
||||
file { "/srv/solr/run/webapps":
|
||||
ensure => link,
|
||||
target => "/usr/local/share/solr/example/webapps",
|
||||
require => File["/srv/solr/run"],
|
||||
before => Service["solr"],
|
||||
}
|
||||
|
||||
file { "/etc/init.d/solr":
|
||||
|
@ -131,8 +137,9 @@ class solr {
|
|||
}
|
||||
|
||||
service { "solr":
|
||||
ensure => running,
|
||||
enable => true,
|
||||
ensure => running,
|
||||
enable => true,
|
||||
hasstatus => true,
|
||||
}
|
||||
|
||||
file { "/etc/solr":
|
||||
|
|
Loading…
Add table
Reference in a new issue