<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1264" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>It is not a big problem (manual start) - as I was 
saying, the safest way to do it is to login as a user, then use su or sudo 
-s.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Unfortunately, some rc files/scripts send SIG_HUP 
when finised, so if daemon aborts on this signal, it can be aborted when RC 
script finished.</FONT></DIV>
<DIV><FONT face=Arial size=2>May be, it is not an issue on modern OS, but I saw 
it a few tims in past.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Anyway, daemon should be _daemon_. It is a 
bug.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=luke@responsys.com href="mailto:luke@responsys.com">Luke West</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=osiris-devel@lists.shmoo.com 
  href="mailto:osiris-devel@lists.shmoo.com">'Osiris Developers'</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Cc:</B> <A 
  title=osiris-devel-bounces+alexei_roudnev=exigengroup.com@lists.shmoo.com 
  href="mailto:'osiris-devel-bounces+alexei_roudnev=exigengroup.com@lists.shmoo.com'">'osiris-devel-bounces+alexei_roudnev=exigengroup.com@lists.shmoo.com'</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, March 17, 2004 7:31 
  AM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> RE: [osiris-devel] Bug: osirisd 
  3.0.4 does't daemonize correctly. ..</DIV>
  <DIV><BR></DIV>
  <DIV><SPAN class=598222815-17032004><FONT face=Arial color=#0000ff 
  size=2>All,</FONT></SPAN></DIV>
  <DIV><SPAN class=598222815-17032004><FONT face=Arial color=#0000ff 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=598222815-17032004><FONT face=Arial color=#0000ff size=2>If 
  you have ssh'd from machine1 to machine 2, t</FONT></SPAN><SPAN 
  class=598222815-17032004><FONT face=Arial color=#0000ff size=2>here is a way 
  to get out of the session on machine 2, but it is brutal.&nbsp;Use the 
  interrupt built into SSH ~. (tilde dot)</FONT></SPAN></DIV>
  <DIV><SPAN class=598222815-17032004><FONT face=Arial color=#0000ff 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=598222815-17032004><FONT face=Arial color=#0000ff 
  size=2>L.</FONT></SPAN></DIV>
  <BLOCKQUOTE style="MARGIN-RIGHT: 0px">
    <DIV></DIV>
    <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT 
    face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> <A 
    href="mailto:Alexei_Roudnev@exigengroup.com">Alexei_Roudnev@exigengroup.com</A> 
    [mailto:Alexei_Roudnev@exigengroup.com] <BR><B>Sent:</B> 15 March 2004 
    23:32<BR><B>To:</B> Osiris Developers<BR><B>Cc:</B> <A 
    href="mailto:osiris-devel-bounces+alexei_roudnev=exigengroup.com@lists.shmoo.com">osiris-devel-bounces+alexei_roudnev=exigengroup.com@lists.shmoo.com</A>; 
    <A 
    href="mailto:osiris-devel@lists.shmoo.com">osiris-devel@lists.shmoo.com</A><BR><B>Subject:</B> 
    Re: [osiris-devel] Bug: osirisd 3.0.4 does't daemonize 
    correctly...<BR><BR></FONT></DIV><BR><FONT face=sans-serif size=2>I saw it 
    in 2.2.0 and I was sure that problem was resolved. </FONT><BR><BR><FONT 
    face=sans-serif size=2>Temporary solution:</FONT> <BR><BR><FONT 
    face=sans-serif size=2>(1) NEVER start and stop daemons by this way, do it 
    by running /etc/init.d/daemon start or ... stop</FONT> <BR><FONT 
    face=sans-serif size=2>/File name depends, of course/</FONT> <BR><BR><FONT 
    face=sans-serif size=2>(2) In this init file, &nbsp; use 'nohup' or some 
    other method to get rid of the control terminal.</FONT> <BR><BR><FONT 
    face=sans-serif size=2>OR - don't login as a root, login as a user and then 
    'su' or 'sudo'. (signal, sent by user, can not kill root process).</FONT> 
    <BR><BR><FONT face=sans-serif size=2>It is well known problem with many 
    daemons, caused by SIGHUP signal and some other issues, when control 
    terminal is closed.</FONT> <BR><BR><FONT face=sans-serif 
    size=2>&nbsp;<BR>Alex Roudnev<BR>Exigen Group <BR></FONT><BR><BR><BR>
    <TABLE width="100%">
      <TBODY>
      <TR vAlign=top>
        <TD>
        <TD><FONT face=sans-serif size=1><B>"Yazz D. Atlas" 
          &lt;yazz@osdn.com&gt;</B></FONT> <BR><FONT face=sans-serif size=1>Sent 
          by: 
          osiris-devel-bounces+alexei_roudnev=exigengroup.com@lists.shmoo.com</FONT> 

          <P><FONT face=sans-serif size=1>03/15/2004 03:07 PM</FONT> <BR><FONT 
          face=sans-serif size=1>Please respond to Osiris Developers</FONT> 
          <BR></P>
        <TD><FONT face=Arial size=1>&nbsp; &nbsp; &nbsp; &nbsp; 
          </FONT><BR><FONT face=sans-serif size=1>&nbsp; &nbsp; &nbsp; &nbsp; 
          To: &nbsp; &nbsp; &nbsp; &nbsp;osiris-devel@lists.shmoo.com</FONT> 
          <BR><FONT face=sans-serif size=1>&nbsp; &nbsp; &nbsp; &nbsp; cc: 
          &nbsp; &nbsp; &nbsp; &nbsp;</FONT> <BR><FONT face=sans-serif 
          size=1>&nbsp; &nbsp; &nbsp; &nbsp; Subject: &nbsp; &nbsp; &nbsp; 
          &nbsp;[osiris-devel] Bug: osirisd 3.0.4 does't daemonize 
          correctly...</FONT></TD></TR></TBODY></TABLE><BR><BR><BR><FONT 
    face="Courier New" size=2>Since playing around with Osiris lately I found an 
    item I think is a <BR>bug. Ssh into a system and stop osirisd by hand and 
    them restart it <BR>using the command bellow. Now try to exit that ssh 
    session, it just hangs.<BR><BR>( example of what I'm talking about 
    )<BR><BR># /usr/local/sbin/osirisd -r /usr/local/osiris/<BR># 
    exit<BR>logout<BR>(just hangs here)<BR><BR>You might want to look at the 
    following URL for some code to solve this. <BR>(I'm not a programmer so 
    forgive me if I can't submit my own 
    patch)<BR><BR>http://www.erlenstar.demon.co.uk/unix/faq_2.html#SEC16<BR><BR>(cut 
    and pasted from above URL)<BR><BR>A daemon process is usually defined as a 
    background process that does <BR>not belong to a terminal session. Many 
    system services are performed by <BR>daemons; network services, printing 
    etc.<BR><BR>Simply invoking a program in the background isn't really 
    adequate for <BR>these long-running programs; that does not correctly detach 
    the process <BR>from the terminal session that started it. Also, the 
    conventional way of <BR>starting daemons is simply to issue the command 
    manually or from an rc <BR>script; the daemon is expected to put itself into 
    the background.<BR><BR><BR>-- <BR>&nbsp;Yazz D. Atlas &lt;yazz@osdn.com&gt; 
    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Voice: 408-802-9608 (cell)<BR>&nbsp;Senior 
    Systems Engineer / Senior BOFH &nbsp; &nbsp;Fax: 510-226-8814<BR>&nbsp;[ O | 
    S | D | N ] &nbsp; &nbsp;Open Source Development Network / VA 
    Software<BR>&nbsp;http://www.osdn.com &nbsp; &nbsp; &nbsp; &nbsp;47071 
    Bayside Parkway Fremont, CA 94538<BR>&nbsp;AIM:"Entropy Works 42" IRC:"Aaton 
    irc.slashnet.org" ICQ:"11445680"<BR>&nbsp; &nbsp; &nbsp; &nbsp;gpg 
    --keyserver &nbsp;wwwkeys.pgp.net --recv-key 0x0C57DDA0<BR>&nbsp; &nbsp; 
    &nbsp; &nbsp;GPG: 644C E9FF D0AF 3C5E 5C73 5E05 00EF C7EC 0C57 
    DDA0<BR>_______________________________________________<BR>osiris-devel 
    mailing 
    list<BR>osiris-devel@lists.shmoo.com<BR>https://lists.shmoo.com/mailman/listinfo/osiris-devel<BR></FONT><BR><BR></BLOCKQUOTE>
  <P>
  <HR>

  <P></P>_______________________________________________<BR>osiris-devel mailing 
  list<BR>osiris-devel@lists.shmoo.com<BR>https://lists.shmoo.com/mailman/listinfo/osiris-devel</BLOCKQUOTE></BODY></HTML>