[LEDE-DEV] [PATCH 2/3] procd: Don't use syslog before its initialization

Michal Sojka sojkam1 at fel.cvut.cz
Sat Mar 11 01:10:12 PST 2017


On Sat, Mar 11 2017, John Crispin wrote:
> On 11/03/17 01:48, Michal Sojka wrote:
>> When procd starts a rcS script, it captures its stdout and stderr and
>> logs them to syslog. It could happen (and I don't know exactly why),
>> that a rcS scripts produces some output before openlog() is called in
>> procd. The result is that all subsequent logs from procd are logged
>> with ident and PID of some other service that happens to be started at
>> that time. I also have no clue why this is happening (bug in musl?),
>> but it is very confusing when one tries to debug boot problems.
>
> is there a way to reliably reproduce this issue ?

I can reproduce it reliably with handful of custom packages. I'll try to
prepare a more simpler setup where this can be seen.

-Michal



More information about the Lede-dev mailing list