1

uClibc/glibc は、エラーを syslog にリダイレクトする機能を提供していますか? 「シンボルを解決できません」などのエラーは、コンソールの stderr ではなく syslog に移動する必要があります。

4

1 に答える 1

0

If it's a daemon, the best option is using an init capable of this (e.g. InitNG). If this isn't possible, you can replace stderr early (not as nice, but if there's no other option...):

#!/bin/sh
init 2>&1 >/dev/console | tee /dev/console | logger

Something similar needs to be done for programs using pseudo-terminals. The easiest way is using a shell wrapper similar to the above snippet.

于 2011-12-25T10:01:05.877 に答える