Make pizauth work without syslog and log to /dev/stdout and /dev/stderr
I've been trying to get pizauth to run in docker for two days straight.
Unfortunately, whatever I do, I just run into more issues:
pizauthdoes not work without syslog.- So I tried installing
rsyslogd. - Just trying to start in an entrypoint via
rsyslogd -ndidn't work. - Great, let's put in there
supervisord. - But now I have an issue -- how do I pass arguments to
pizauth? - Write more scripts...
...A couple of days later...
- Great, that didn't work either. Back to the basis.
- Have I set
error_notify_cmd? No, let's set that. - Restart everything.
- Ok, we're back to
Cannot connect to syslog: Initialization error: unix socket paths not found.
What I'm saying is: please provide an option that will log to /dev/stdout and /dev/stderr instead of relying on syslog.
Thank you.
A non-syslog log should be possible, and there are the hooks to make this somewhat easy e.g. in main.rs:
let logger = syslog::unix(formatter).unwrap_or_else(|e| fatal(&format!("Cannot connect to syslog: {e:}")));
I'd happily take a PR for this (but I only use platforms with syslog, so it's not something I can really test).
The other aspects I'm a little confused by: they don't really seem anything pizauth related?
They're not. 🙂
I'm just saying it took a while to try to get it running inside docker with syslog and it wasn't easy. Or done.
I'd be happy to provide a PR but, unfortunately, my Rust skills are somewhat lacking. I will see what I can do.