Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Mar 2021 21:52:33 +0100
From:      kay <kay.diam@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   ppp -direct mode and redirect logs to stderr
Message-ID:  <CANaOheZC4P7AeNcc9nRd0XGh%2BHESfjsymzA8KLFpyW8WRO0W9A@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi Everyone,

I'd like to run "ppp -direct" as a fork and receive all logs via stderr FD
instead of syslog. How can I achieve this? I'm thinking of using dup2
syscall to replace the `/var/run/logpriv` socket FD, but this would be too
hacky...

Can I run ppp in interactive mode, configure logging, then switch ppp to
"-direct" mode somehow? Or probably there is a way to force ppp to print
all logs to stderr?

Thanks in advance.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANaOheZC4P7AeNcc9nRd0XGh%2BHESfjsymzA8KLFpyW8WRO0W9A>