Skip to content

Commit

Permalink
Update Solr systemd service logging
Browse files Browse the repository at this point in the history
- suppressing logging to stdout as it floods /var/log/messages
with information already covered in eZFind's solr.log
  • Loading branch information
benkmugo committed Apr 6, 2020
1 parent 912813e commit 959fa5b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/scripts/rhel/solr.service
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ Description=Apache SOLR
After=syslog.target network.target remote-fs.target nss-lookup.target

[Service]
# suppress output to stdout as it floods /var/log/messages with
# Solr messages that are already logged in ezfind's solr.log
StandardOutput=null
#StandardError=null
WorkingDirectory=/<ezpublish_legacy_root>/extension/ezfind/java/
PIDFile=/var/run/solr.pid
ExecStart=/usr/bin/java -Dezfind -server -d64 -Xmx300m -Xms300m -XX:+UseParallelGC -XX:NewRatio=5 -jar start.jar
Expand Down

0 comments on commit 959fa5b

Please sign in to comment.