optimize solr cron and log

This commit is contained in:
github@kiekerjan.isdronken.nl 2021-04-18 21:52:17 +02:00
parent 4aaee13c1c
commit ef5b536f43
2 changed files with 5 additions and 3 deletions

View File

@ -1,2 +1,2 @@
*/1 * * * * root /usr/bin/curl -s http://127.0.0.1:8080/solr/update?commit=true >/dev/null 2>&1
30 3 * * * root /usr/bin/curl -s http://127.0.0.1:8080/solr/update?optimize=true >/dev/null 2>&1
* 1 * * * root /usr/bin/curl -s http://127.0.0.1:8080/solr/update?commit=true >/dev/null 2>&1
30 3 * * * root /usr/bin/curl -s http://127.0.0.1:8080/solr/update?optimize=true >/dev/null 2>&1

View File

@ -93,7 +93,9 @@ cat > /etc/rsyslog.d/10-jetty9.conf <<EOF
EOF
# Also adjust logrotated to the new file and correct user
cat > /etc/logrotate.d/jetty9.conf <<EOF
rm -f /etc/logrotate.d/jetty9
cat > /etc/logrotate.d/jetty9 <<EOF
/var/log/jetty-console.log {
copytruncate
weekly