Re: pcsclite-openrc: why log to stdout?
Reply #4 –
I see, so the stdout log is kind of an unwanted side effect of running pcscd in the foreground. I would like to log to syslog in foreground, but I guess that is the design choice of pcscd. I'm comfortable with working around this though.
Thanks, that is one part of the solution. But I was more concerned of how to log with a command like `logger` as opposed to a log file. `--stdout` expects a file argument, so that particular flag does not work for me.
I found the solution in a github issue, for anyone that is interested: https://github.com/OpenRC/openrc/issues/127#issuecomment-398129031
Checking the man page of `start-stop-daemon` reveals that the flag for supervise_daemon that allows logging to another process is `--stdout-logger/--stderr-logger`. Using the `logger` command as an argument for this flag works for me.,
Thanks for pointing me in the right direction! A lot to learn working without systemd/journald
EDIT: Wrong, I mixed up start-stop-daemon with supervise daemon; I thought they have the same command line arguments. Unmarked the thread as solved, as I am again not sure how to achieve what I am aiming for.
EDIT 2: Marked as solved again. This is my final solution:
output_logger_arg="--stdout-logger /usr/bin/logger"