On 2025-09-17 20:53, 'Stefano Cossu' via lua-l wrote:
> How's that the interpreter can't find /dev/stderr when run in systemd?
Check the systemd documentation:
https://www.freedesktop.org/software/systemd/man/latest/systemd.exec.html
> StandardOutput=
> [...]
> Also note that, in this case, stdout (or stderr, see below) will be
an > AF_UNIX stream socket, and not a pipe or FIFO that can be reopened.
> This means when executing shell scripts the construct echo "hello" >
/> dev/stderr for writing text to stderr will not work. To mitigate this
> use the construct echo "hello" >&2 instead, which is mostly
equivalent > and avoids this pitfall.