Skip to content

Commit

Permalink
[SOLR] IndexQueue: FIX If permissions are not ok
Browse files Browse the repository at this point in the history
If permissions on log and pid files are not ok, script return "Status
500" and is not match with
if ( not defined $status or $status =~ /No pidfile found/ or $status =~ /Running: *no/ )

Now, we check "Running: yes" to knows if daemon is running.
  • Loading branch information
joubu committed Sep 28, 2011
1 parent b5d2c08 commit 55f316d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion C4/Search/Engine/Solr.pm
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ sub AddRecordToIndexRecordQueue {

# Verify IndexRecordQueue.pl is started
# Else call IndexRecord directly
if ( not defined $status or $status =~ /No pidfile found/ or $status =~ /Running: *no/ ) {
if ( not defined $status or not $status =~ /Running: *yes/ ) {
return IndexRecord($recordtype, $recordids);
}

Expand Down

0 comments on commit 55f316d

Please sign in to comment.