Cannot use certain commands in rc.local due to initlog
We switched from caldera to rh.
We used to put "/usr/bin/setterm -blank 0 " in rc.local to
avoid console blanking.
This doesn't work in rh6 because:
1) setterm does its jobs via some control chars it sends to
2) rc.local is executed through action/initlog which does
something weird with output.
3) in init.d/funcions: INITLOG_ARGS="-q", -q is an
undocumented initlog switch (at least in the initlog man
To solve this I had to put:
somewhere in rc.local, so that rc runs it directly instead
of through action/initlog.
if egrep -q "(daemon |action )" $i ; then
to decide how to run a script; by putting "(daemon" in
rc.local I made rc to run rc.local as
action "bla bla" rc.local start
This way "setterm" does its job ok.
fixed in initscripts-4.44-1; rc.local is not run through initlog