Skip to content

Commit 334d502

Browse files
committed
Make elasticsearch nicer.
1 parent 1be64d5 commit 334d502

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

search.cmd

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ cd "${fscrawlerPth}" || exit 1
1414

1515
for fsJob in "${fsJobs[@]}"; do
1616
if [ ! -e "/var/run/fscrawler-${fsJob}.pid" ]; then
17-
/usr/sbin/daemon -t "fscrawler-${fsJob}" -P "/var/run/daemon-fscrawler-${fsJob}.pid" -p "/var/run/fscrawler-${fsJob}.pid" -S -u "elasticsearch" bin/fscrawler --config_dir "${fscrawlerJobPth}" "${fsJob}"
17+
/usr/sbin/daemon -t "fscrawler-${fsJob}" -P "/var/run/daemon-fscrawler-${fsJob}.pid" -p "/var/run/fscrawler-${fsJob}.pid" -S -u "elasticsearch" nice -20 bin/fscrawler --config_dir "${fscrawlerJobPth}" "${fsJob}"
1818
fi
1919
done
2020

0 commit comments

Comments
 (0)