New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can't redirect (debug) output of systemd-udevd #462
Comments
The log should just end up in the journal because the redirect is not a tty anymore. |
Added log_set_target(LOG_TARGET_CONSOLE); to the code. We should probably just remove the --debug option and document in the man page how to use the environment variables. No other systemd tool has this switch. |
In this particular case I was running udev under sysvinit, so no journal is available. |
For more details, see By setting SYSTEMD_LOG_TARGET appropriately, you can avoid this behavior, as Kay explained. |
2015-07-01 23:14 GMT+02:00 David Herrmann notifications@github.com:
Is this behaviour of systemd-udevd documentend somewhere? Why is it that all of the instruments seeking intelligent life in the |
Hm, they environment variables are global for all systemd utilities. The only real reference I see is systemd(1). |
systemd-active(1) has
Second half of this paragraph could be added to other man pages, probably as a xi:include. |
I'm trying to run systemd-udevd in debug and redirecting the output to a file.
Reading the man page about --debug I tried the following:
But that file just remains empty. Am I doing something wrong or is this a bug?
The text was updated successfully, but these errors were encountered: