Re: puts doesn't show up in multilog

"Erwin Hoffmann" <[email protected]> Thu, 13 Aug 2009 14:21:15 +0200
Newsgroups gmane.comp.djb.syslog
Organization FEHCom
Message-ID <[email protected]>
Hi,

On Thu, 13 Aug 2009 12:52:49 +0200, richard lucassen  
<[email protected]> wrote:

> I've got a small C program that writes a string to sdtout.
>
> When starting ./run by hand, the message shows up. When running
> supervised, nothing is logged. I added an "echo -e "starting program" to
> the run file and this messages is logged. So the multilog is reading
> stdout/stderr. Anyone an idea of what is happening?
>
> run:
>
> #!/bin/sh
> echo -e "starting parport-wait4int"
> exec 2>&1
> exec /usr/local/bin/parport-wait4int

What is 'echo -e' doing ?

>
>
> log/run:
>
> #!/bin/sh
> exec setuidgid loguser /usr/local/bin/multilog t ./main


Did you ask svc to run that script log/run prior of runnig run ?

	ps -ef | grep loguser

	svstat /service/*/log

would show.

You know, the information fed to the log only works in the context of  
supervise.

regards.
--eh.



-- 
Dr. Erwin Hoffmann | FEHCom | http://www.fehcom.de