On Wed, 13.04.16 23:43, Samuel Williams ([email protected]) wrote:
> I guess what I'm proposing is not a specific workaround but a way for > legacy software which can only log to a file to get it's data into > journald. There is plenty of software like that, unfortunately. It's a > pragmatic option. > > In this specific case, I'm referring to Nginx in daemon mode, which closes > /dev/stderr as far as I can tell, and then spawns passenger, which can only > log to a file. There is no way to hook up passenger to /dev/stderr. Hmm, this might work: "touch /tmp/xxxx && mount --bind /proc/self/fd/2 /tmp/xxxx" That will bind mount your fd 2 to /tmp/xxxx, and then you can reopen it from there later... (Didn't try that this actually works, but I think this should pin the open fd. YMMV.) Lennart -- Lennart Poettering, Red Hat _______________________________________________ systemd-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/systemd-devel
