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

Xabier Oneca -- xOneca xoneca at gmail.com
Fri Oct 31 20:20:14 UTC 2014


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_,,_
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20141031/c88d72a3/attachment.html>


More information about the busybox mailing list