<HTML><HEAD></HEAD>
<BODY dir=ltr>
<DIV dir=ltr>
<DIV style="FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: 12pt">
<DIV>Hello Frank,</DIV>
<DIV> </DIV>
<DIV>I'm using Voyage 0.7 and neither of them did work for me(i was using 
/bin/bash since the beggining). Do you think it could be solved by updating to a 
newer version?</DIV>
<DIV> </DIV>
<DIV>Thanks for the comment. </DIV>
<DIV 
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
<DIV style="FONT: 10pt tahoma">
<DIV> </DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A title=frankhoeflich@yahoo.com 
href="mailto:frankhoeflich@yahoo.com">Frank Hoeflich</A> </DIV>
<DIV><B>Sent:</B> Wednesday, March 28, 2012 8:50 AM</DIV>
<DIV><B>To:</B> <A title=acastelli@keonn.com 
href="mailto:acastelli@keonn.com">Toni Castelli</A> </DIV>
<DIV><B>Cc:</B> <A title=voyage-linux@voyage.hk 
href="mailto:voyage-linux@voyage.hk">voyage-linux@voyage.hk</A> </DIV>
<DIV><B>Subject:</B> Re: [Voyage-linux] log the stdout of a process started by 
start-stop-daemon</DIV></DIV></DIV>
<DIV> </DIV></DIV>
<DIV 
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
<TABLE style="COLOR: #000000" border=0 cellSpacing=0 cellPadding=0>
  <TBODY>
  <TR>
    <TD vAlign=top>Toni: 
      <DIV> </DIV>
      <DIV>    Between Voyage 0.6.5 (Lenny) and Voyage 0.7.5 
      (Squeeze) Debian changed the default sh from bash to dash, and at the time 
      it did indeed cause one of the /bin/sh Voyage scripts to break for me 
      (dash was broken somehow with regard to quoting, don't remember if stdout 
      was a casualty).  I ended up explicitly using /bin/bash in my 
      reworked version of the script and never had a problem again.</DIV>
      <DIV> </DIV>
      <DIV>    Try both #!/bin/dash and #!/bin/bash explicitly in 
      your script and report back what you find along with your Voyage version, 
      please.<BR>
      <DIV> </DIV>
      <DIV>--Frank<BR><BR>--- On <B>Tue, 3/27/12, Teco Boot 
      <I><teco@inf-net.nl></I></B> wrote:<BR>
      <BLOCKQUOTE 
      style="BORDER-LEFT: rgb(16,16,255) 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px">From: 
        Teco Boot <teco@inf-net.nl><BR>Subject: Re: [Voyage-linux] log the 
        stdout of a process started by start-stop-daemon<BR>To: "Toni Castelli" 
        <acastelli@keonn.com><BR>Cc: voyage-linux@voyage.hk<BR>Date: 
        Tuesday, March 27, 2012, 11:39 PM<BR><BR>
        <DIV id=yiv787174926>
        <DIV>I did have same kind of issue. I started using bash instead of sh. 
        <DIV>(1st line: #!/bin/bash)</DIV>
        <DIV>Maybe it is a dirty bypass and I should use a clean sh 
script.</DIV>
        <DIV>Teco</DIV>
        <DIV> </DIV>
        <DIV>
        <DIV> </DIV>
        <DIV>
        <DIV>Op 27 mrt. 2012, om 17:58 heeft Toni Castelli het volgende 
        geschreven:</DIV><BR class=yiv787174926Apple-interchange-newline>
        <BLOCKQUOTE type="cite">
          <DIV dir=ltr>
          <DIV dir=ltr>
          <DIV style="FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: 12pt">
          <DIV>Hello, I’m having some trouble trying to log the stdout and the 
          stderror  generated by an application when it is started by an 
          init.d script.</DIV>
          <DIV> </DIV>
          <DIV>What im trying to run is something like this:</DIV>
          <DIV> </DIV>
          <DIV>$logFile=/var/log/test.log</DIV>
          <DIV> </DIV>
          <DIV>if [ ! "$logFile" == "" ]; then</DIV>
          <DIV>               
          touch $logFile || exit 2</DIV>
          <DIV>               
          start-stop-daemon --start --make-pidfile  --pidfile 
          $PIDFILE  --exec $DAEMON -- $DAEMON_ARGS  >> $logFile 
          2>&1 &</DIV>
          <DIV>else ....</DIV>
          <DIV> </DIV>
          <DIV>when I try to run the script from bash it works perfectly, but 
          when it runs after a reboot, the log file isn’t generated. I’m 
          suspecting it could be a matter of mounting the file system after 
          starting my script, but I’ve checked the execution number and its the 
          last one it shares the number with some other processes). Anyone can 
          guess what’s wrong with the 
          code?</DIV></DIV></DIV></DIV>_______________________________________________<BR>Voyage-linux 
          mailing list<BR><A 
          href="wlmailhtml:/mc/compose?to=Voyage-linux@list.voyage.hk" 
          rel=nofollow target=_blank 
          ymailto="mailto:Voyage-linux@list.voyage.hk">wlmailhtml:/mc/compose?to=Voyage-linux@list.voyage.hk</A><BR>http://list.voyage.hk/mailman/listinfo/voyage-linux<BR></BLOCKQUOTE></DIV>
        <DIV> </DIV></DIV></DIV></DIV><BR>-----Inline Attachment 
        Follows-----<BR><BR>
        <DIV 
        class=plainMail>_______________________________________________<BR>Voyage-linux 
        mailing list<BR><A 
        href="wlmailhtml:/mc/compose?to=Voyage-linux@list.voyage.hk" 
        ymailto="mailto:Voyage-linux@list.voyage.hk">wlmailhtml:/mc/compose?to=Voyage-linux@list.voyage.hk</A><BR><A 
        href="http://list.voyage.hk/mailman/listinfo/voyage-linux" 
        target=_blank>http://list.voyage.hk/mailman/listinfo/voyage-linux</A><BR></DIV></BLOCKQUOTE></DIV></DIV></TD></TR></TBODY></TABLE></DIV></DIV></DIV></BODY></HTML>