Package: systemd
Version: 257.13-1~deb13u1

Attempting to access stderr in /etc/local fails on systemd
but works on other init systems.

Someone on Fedi tells me that is because systemd expects
services to treat fd#2 as a socket.

However, /etc/rc.local is a POSIX shell script, and POSIX
is pretty clear on std{in,out,err}.

Perhaps /lib/systemd/system/rc-local.service and/or
/lib/systemd/system/rc-local.service.d/debian.conf
need to be changed to invoke /etc/rc.local with 2>&1
to fix that? (Assuming it *can* write to stdout.)

Reply via email to