0

I am using mongo-connector to synchronize data between MongoDB and SOLR. I am working in RedHat 7 OS Server, I wanted to run the mongo-connector command as fork process in Server OS, since i need a realtime synchronization without any interruption.

I am issuing the command

sudo mongo-connector -m localhost:27017 -t http://localhost:8983/solr/Search --auto-commit-interval=0 -d solr_doc_manager

this will continue the mongo-connector service until i exit the command interface to the Server. How can i resolve this issue?

Thank you.

Telen Stanley
  • 155
  • 1
  • 2
  • 7

2 Answers2

0

Nohup or disown are the two tools I've used to do this in the past, not sure what mongo-connector & solr expect for their environment but try the following:

sudo nohup mongo-connector -m localhost:27017 -t http://localhost:8983/solr/Search --auto-commit-interval=0 -d solr_doc_manager&
TheFiddlerWins
  • 2,999
  • 1
  • 15
  • 22
0

Or, have a look at the documentation (Installing as a Linux Service).

Lenniey
  • 5,220
  • 2
  • 18
  • 29