[londonlaw-users] Re: Running as a daemon

  • From: michael <michael@xxxxxxxxxxxxx>
  • To: londonlaw-users@xxxxxxxxxxxxx
  • Date: Sat, 19 Feb 2005 10:54:47 -0800

For now, can't you do something like

python london-server >> /var/log/(dont know the fc3 log convention) 2>&1 &

that'll send it to the background with the output added to the specified logfile. or you can exchange /dev/null for the log file and just have everything sent to oblivion.

that'd work well for a start, and when you want to stop the daemon, just have it

SERVERPID=`ps aux |grep london-server|cut -c 9-15`
kill $SERVERPID

Ive been looking at building a gentoo package for londonlaw and this is what Ive come up with so far for the server component. Ive been considering just leaving the server and client components to be run manually by the user for now since the project is at such an early stage.

Also, excuse me if this is all very obvious, just trying to be helpful :)
-michael



On Feb 19, 2005, at 5:33 AM, Ignacio Vazquez-Abrams wrote:

Are there any plans to have london-server act as a normal daemon with it
respawning detached and logging to a file instead of stdout? I'm trying
to package London Law for Fedora Core 3 and the default behavior is
interfering with the initscript that I'm trying to write for it.


--
Ignacio Vazquez-Abrams <ivazquez@xxxxxxxxxxxx>
http://fedora.ivazquez.net/

============================================================== The London Law Users mailing list londonlaw-users@xxxxxxxxxxxxx List info: //www.freelists.org/list/londonlaw-users ==============================================================


Other related posts: