Im running the lsearchd daemon by just running .lsearchd in the terminal - and it all works.
But when I close that window, it stops. How did I run it in silent mode, or as background, or some way that is not dependent on my window staying open?
Thanks!
Run it in screen
Use "nohup {command} &" . Any output will be written to nohup.out in the pwd.
-----Original Message----- Subject: [Mediawiki-l] lsearchd daemon quitting when I close terminal.
Im running the lsearchd daemon by just running .lsearchd in the terminal - and it all works.
But when I close that window, it stops. How did I run it in silent mode, or as background, or some way that is not dependent on my window staying open?
Thanks! _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
This email was sent to you by Thomson Reuters, the global news and information company. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Thomson Reuters.
Im running the lsearchd daemon by just running .lsearchd in the terminal - and it all works.
But when I close that window, it stops. How did I run it in silent mode, or as background, or some way that is not dependent on my window staying open?
As much as the other options (screen, nohup) will work, you shouldn't do it that way.
Write a service. If you use screen or nohup, the daemon will not persist through reboots.
If I get some time I may write one. This is the kind of thing that would be nice to have checked into the repository (along with deb and rpm source packages).
Respectfully,
Ryan Lane
I tried this: http://ubuntuforums.org/showthread.php?t=1476445
But It dosnt work. - not sure why. I guess I need to do something to just run ./lsearchd on startup
Let me know if you end up makign the script.
Thanks -Adam
On Jul 27, 2010, at 9:39 AM, Lane, Ryan wrote:
Im running the lsearchd daemon by just running .lsearchd in the terminal - and it all works.
But when I close that window, it stops. How did I run it in silent mode, or as background, or some way that is not dependent on my window staying open?
As much as the other options (screen, nohup) will work, you shouldn't do it that way.
Write a service. If you use screen or nohup, the daemon will not persist through reboots.
If I get some time I may write one. This is the kind of thing that would be nice to have checked into the repository (along with deb and rpm source packages).
Respectfully,
Ryan Lane _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Adam Meyer wrote:
I tried this: http://ubuntuforums.org/showthread.php?t=1476445
But It dosnt work. - not sure why. I guess I need to do something to just run ./lsearchd on startup
Let me know if you end up makign the script.
Thanks -Adam
That should allow you to run "/usr/local/lucene-search start" and close the terminal without lsearchd quitting.
As for automatically running it on startup, it would need a symlink on rc.<runlevel>
use screen.
ex) screen -d -m /root/daemon.sh
2010/7/27 Adam Meyer meyer7@mindspring.com:
Im running the lsearchd daemon by just running .lsearchd in the terminal - and it all works.
But when I close that window, it stops. How did I run it in silent mode, or as background, or some way that is not dependent on my window staying open?
Thanks! _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org