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+HESfjsymzA8KLFpyW8WRO0W9A@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: <http://docs.FreeBSD.org/cgi/mid.cgi?CANaOheZC4P7AeNcc9nRd0XGh+HESfjsymzA8KLFpyW8WRO0W9A>