<div dir="ltr"><p style="margin:0px;font-size:11px;line-height:normal"><font face="arial, helvetica, sans-serif">Hello,</font></p><p style="margin:0px;font-size:11px;line-height:normal"><font face="arial, helvetica, sans-serif"><br></font></p><p style="margin:0px;line-height:normal"><font face="arial, helvetica, sans-serif"><span style="font-size:11px">I've been trying to figure out the best way to support legacy applications that don't support syslog for logging. The best we can do, I think, is to use fifo and have another process read the fifo to journald.</span></font></p><p style="margin:0px;line-height:normal"><font face="arial, helvetica, sans-serif"><span style="font-size:11px"><br></span></font></p><p style="margin:0px;line-height:normal"><font face="arial, helvetica, sans-serif"><span style="font-size:11px">I made the following unit journald-fifo@.service</span></font></p><p style="margin:0px;line-height:normal"><font face="arial, helvetica, sans-serif"><span style="font-size:11px"><br></span></font></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:'Fira Code'">[Unit]</p><p style="margin:0px;font-size:11px;line-height:normal;font-family:'Fira Code'">Description=A fifo for logging to journald</p><p style="margin:0px;font-size:11px;line-height:normal;font-family:'Fira Code'">AssertPathExists=/var/log/%i.fifo</p><p style="margin:0px;font-size:11px;line-height:normal;font-family:'Fira Code';min-height:13px"><br></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:'Fira Code'">[Service]</p><p style="margin:0px;font-size:11px;line-height:normal;font-family:'Fira Code'">Type=simple</p><p style="margin:0px;font-size:11px;line-height:normal;font-family:'Fira Code'">ExecStart=/bin/sh -c 'while true; do systemd-cat -t %i < /var/log/%i.fifo; done'</p><p style="margin:0px;font-size:11px;line-height:normal;font-family:'Fira Code'">Nice=5</p><p style="margin:0px;font-size:11px;line-height:normal;font-family:'Fira Code';min-height:13px"><br></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:'Fira Code'">[Install]</p><p style="margin:0px;font-size:11px;line-height:normal;font-family:'Fira Code'">WantedBy=multi-user.target</p><div><br></div><p style="margin:0px;line-height:normal"><font face="arial, helvetica, sans-serif"><span style="font-size:11px">I was wondering is this a good approach? Is there a better way? (of course, we'd like to fix the original software to work better).</span></font></p><p style="margin:0px;line-height:normal"><font face="arial, helvetica, sans-serif"><span style="font-size:11px"><br></span></font></p><p style="margin:0px;line-height:normal"><font face="arial, helvetica, sans-serif"><span style="font-size:11px">Finally, if this is a good approach, is this method worth putting into systemd/journald as a standard service? If so, how do I submit a PR or where to begin?</span></font></p><p style="margin:0px;line-height:normal"><font face="arial, helvetica, sans-serif"><span style="font-size:11px"><br></span></font></p><p style="margin:0px;line-height:normal"><font face="arial, helvetica, sans-serif"><span style="font-size:11px">Kind regards,</span></font></p><p style="margin:0px;line-height:normal"><font face="arial, helvetica, sans-serif"><span style="font-size:11px">Samuel</span></font></p><p style="margin:0px;line-height:normal"><font face="arial, helvetica, sans-serif"><span style="font-size:11px"><br></span></font></p></div>