Hi all,
I need to debug a daemon when it is called from init process. To accomplish
this, I need to add "> /tmp/debug.log 2>&1" to daemon_flags (or to another
option), but it doesn't works. I have tried the following combinations:
a/ daemon_flags="--first-option --second-option > /tmp/debug.log 2>&1" and
using the following rc_start options: ${rcexec} "${daemon} ${daemon_flags}
${_bg}" (rc_bg=YES in the startup script.
b/ daemon_flags="--first-option --second-option", adding another section with
more_flags="> /tmp/debug.log 2>&1" and using the following rc_start options:
${rcexec} "${daemon} ${daemon_flags} ${more_flags} ${_bg}" (rc_bg=YES in the
startup script).
c/ And tha last try is to use rc_start options: ${rcexec} "${daemon}
${daemon_flags}" > /tmp/debug.log 2>&1 & ....
Nothing of this solutions works.
What am I doing wrong?
Thanks.
--
Greetings,
C. L. Martinez