Hi Andrew, thanks for clarify how journald's socket works. Your first patch looks enough to me, will upload soon.
Lorenzo On Sat, 28 Feb 2026 09:21:01 +0000 Andrew Bower <[email protected]> wrote: > New version of this run script attached with the following > improvements: > > 1) Let user override socket path env/socket. > > 2) Avoid fork and exec of readlink executable if /dev/log is not a > symlink. > > diff --git a/debian/service/socklog-unix/run > b/debian/service/socklog-unix/run index d98e29d..6e1d884 100755 > --- a/debian/service/socklog-unix/run > +++ b/debian/service/socklog-unix/run > @@ -1,3 +1,14 @@ > -#!/bin/sh > +#!/usr/bin/env /lib/runit/invoke-run > exec 2>&1 > -exec chpst -U _socklog-unix socklog unix /dev/log > + > +# The Listening socket path can be overriden by writing it into a > file +# named env/socket under the service directory. > + > +if [ -z ${socket+_} ] && > + [ -h /dev/log ] && > + [ "$(readlink /dev/log)" = "/run/systemd/journal/dev-log" ] > +then > + socket=/run/systemd/journal/syslog > +fi > + > +exec chpst -U _socklog-unix socklog unix "${socket:-/dev/log}"

