How to run FS Crawler in background on Ubuntu 20.04

I tried to run FS Crawler in background on Ubuntu 20.04, and I changed the last line of file bin/fscrawler as following:
exec "nohup $JAVA" ${JAVA_OPTS} -cp "$FS_CLASSPATH" "fr.pilato.elasticsearch.crawler.fs.cli.FsCrawler" "$@" "&"

But it failed with message:
exe: nohup /bin/java: not found

Does anybody knows if we can run FS Crawler in background?
Thanks~

Why not running FSCrawler with:

nohup bin/fscrawler JOB_ NAME &

Would that work?

1 Like

Thank you so much David. It works like a charm!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.