<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>RE: [bf1942] PID file incorrect?</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>&gt; From: Christopher Kunz [<A HREF="mailto:chrislist@de-punkt.de">mailto:chrislist@de-punkt.de</A>]</FONT>
<BR><FONT SIZE=2>&gt; Sent: Sunday, March 14, 2004 9:41 AM</FONT>
<BR><FONT SIZE=2>&gt; To: bf1942@icculus.org</FONT>
<BR><FONT SIZE=2>&gt; Subject: Re: [bf1942] PID file incorrect?</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; Peter Chang wrote:</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; &gt; uhh... the pid file format is actually like this:</FONT>
<BR><FONT SIZE=2>&gt; &gt; </FONT>
<BR><FONT SIZE=2>&gt; &gt; &nbsp;&nbsp;&nbsp; pid</FONT>
<BR><FONT SIZE=2>&gt; &gt; &nbsp;&nbsp;&nbsp; tid</FONT>
<BR><FONT SIZE=2>&gt; &gt; </FONT>
<BR><FONT SIZE=2>&gt; &gt; your cat-int is going to get the tid not the pid.</FONT>
<BR><FONT SIZE=2>&gt; &gt; </FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; Uhm, I guess &quot;kill -9 `head -n 1 BFVIETNAM.pid`&quot; is a better </FONT>
<BR><FONT SIZE=2>&gt; idea, then?</FONT>
</P>

<P><FONT SIZE=2>yes, but if you want to try to play nice do a (using syntax off the top of my head)</FONT>
</P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>kill -s SIGINT `head -n 1 bfvietnam.pid`</FONT>
</P>

<P><FONT SIZE=2>rather than do a SIGKILL right away just ask the server to go away. in this case it will attempt to close the log file, console, etc cleanly. the timeout would be system specific, but if it doesn't go away soon then do the SIGKILL.</FONT></P>

<P><FONT SIZE=2>\p</FONT>
</P>

</BODY>
</HTML>