[PATCH 3/3] zcip: add an option to force logging to syslog even if running -f

Stam, Michel [FINT] M.Stam at fugro.nl
Tue Nov 4 11:00:18 UTC 2014


I will re-post this patch after a discussion with Denys off-list.

Kind regards,

Michel Stam

From: busybox [mailto:busybox-bounces at busybox.net] On Behalf Of Xabier Oneca -- xOneca
Sent: Friday, October 31, 2014 21:20 PM
To: Isaac Dunham; busybox at busybox.net
Subject: Re: [PATCH 3/3] zcip: add an option to force logging to syslog even if running -f

El 30/10/2014 16:30, "Isaac Dunham" <ibid.ag at gmail.com> escribió:
>
> On Thu, Oct 30, 2014 at 04:15:13PM +0100, Stam, Michel [FINT] wrote:
> > Hello Denys,
> >
> > I'm not sure what you mean with every daemon?
> >
> > In this particular case, I did not see much from zcip, as it was being executed from OpenWRT procd. This init program expects programs to run in the foreground, and when they exit, it automatically restarts them. Sortof a watchdog, if you will.
> >
> > Unfortunately, if zcip runs in the foreground, it will not log anything to syslog anymore, instead sending everything to stderr. This patch allows to change that behaviour.
>
> Is there a reason that this sort of command line wouldn't work:
>
>  zcip -f -r $RANGE 2>&1 |logger -t zcip
>
> ?
> >
> > Best regards,
> >
> > Michel Stam
> > Embedded System Engineer
I was thinking in the same approach! 'logger' should do the trick. For this and other daemons.
If this patch is to be approved, as Denys said, other daemons should mirror the same behaviour...
Cheers,
Xabier Oneca_,,_


More information about the busybox mailing list