Re: dhcpcd doesn't start if standard output and error are redirected to a file
Juergen Daubert
Tue Jun 30 17:49:40 2020
On Tue, Jun 30, 2020 at 06:19:06PM +0200, Juergen Daubert wrote:
> Hello,
>
> as of 9.1.2 it's not longer possible to redirect both standard output
> and standard error to a file. Works with 9.1.1 and with 9.1.2 if privsep
> is disabled.
Sorry, forgot to say that a quick fix for the problem is to define
logfile in dhcpcd.conf.
>
> # dhcpcd --debug &> /tmp/dhcpcd.log
> # ps ax | grep dhcp
> 1285 ? S 0:00 dhcpcd --debug
> 1286 ? S 0:00 dhcpcd --debug
> 1289 pts/9 S+ 0:00 grep dhcp
> # cat /tmp/dhcpcd.log
> dhcpcd-9.1.2 starting
> spawned privileged actioneer on PID 1285
> spawned network proxy on PID 1286
> spawned controller proxy on PID 1287
> udev: starting
> dev: loaded udev
> DUID 00:04:90:c0:16:40:d2:88:11:e7:a2:96:2c:fd:a1:5a:a7:99
> chrooting to `/var/lib/dhcpcd' as dhcpcd
> dhcpcd_fork_cb: truncated read 0 (expected 4)
>
>
> This is on a Linux system.
>
> Thanks
> Juergen
>
>
>
>
Archive administrator: postmaster@marples.name