On console/vt /etc/init.d/functions sources /etc/profile.d/lang.sh and this script calls /bin/unicode_stop (which has a bug "missing FD in test -t"), without calling unicode_start. This gives trouble in /etc/redhat-lsb/lsb_pidofproc, because this output is used in an expression like pid=$(pidofproc test), and the output from /bin/unicode_stop fills the pid variable, if no process is found by pidof, and so the test "test -z "$pid" will fail. /etc/init.d/tor use the lsb-pidofproc version. Reproduce on console/vt - not in xterm: 1) /etc/init.d/tor stop 2) sh -x /etc/init.d/tor status |cat -v See $pid variable..
This should be fixed in 8.64-1.