1835599 Members
2795 Online
110079 Solutions
New Discussion

"recursion too deep"

 
linda_9
Occasional Advisor

"recursion too deep"

The System hpunix 10.20 installed cannot boot into multi-user mode. First boot into single-user mode,mount the file system on vg00,it can boot into multi-user mode,but the shell-scripts in directory rc*.d didn't executed. When executed the shell-script 's320hostname',message 'recursion too deep' appears.Why?
linda
5 REPLIES 5
T. M. Louah
Esteemed Contributor

Re: "recursion too deep"

Usually reading the offending script will reveal a syntax error. Check it out!
Little learning is dangerous!
Sanjay_6
Honored Contributor

Re: "recursion too deep"

Hi Linda,

Try this,

quote //

This message is caused by a problem in one of the startup scripts on the system.

The easiest way to isolate the offending script is with the following command:

/usr/bin/ksh -x /sbin/rc

Usually reading the offending script will reveal a syntax error.

//unquote

Hope this helps.

Regds
Marco Paganini
Respected Contributor

Re: "recursion too deep"

Hello Linda

I've seen this happening when you have some application that transverse directories and you have a symlink pointing to the parent directory.

Just a 2-cent tip.

Regards,
Paga
Keeping alive, until I die.
Steven Sim Kok Leong
Honored Contributor

Re: "recursion too deep"

Hi,

S320hostname references /etc/rc.config and /etc/rc.config references a FOR loop to load all the system variables specified in /etc/rc.config.d/* and /etc/TIMEZOME:
=============================
for CFG_FILE in /etc/rc.config.d/* /etc/TIMEZONE
do
...
done
=============================

In this case, the "recursion too deep" likely lies with accessing /etc/rc.config.d/*. Check your configuration files in /etc/rc.config.d.

Hope this helps. Regards.

Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
Printaporn_1
Esteemed Contributor

Re: "recursion too deep"

Hi Linda,
PLease make sure that root shell in /etc/passwd is /sbin/sh
also check permission and syntax of file in rc directory.
enjoy any little thing in my life