1834307 Members
2612 Online
110066 Solutions
New Discussion

recursion too deep

 
SOLVED
Go to solution
Sanjiv Sharma_1
Honored Contributor

recursion too deep

Hi,

I have a K360/HP-UX 10.20.

When I manuall stop the sendmail it gives a message "recursion too deep" and doesn't stop sendmail.

What is this error and what needs to be done to resolve this?

Thanks,
Everything is possible
10 REPLIES 10
Robin Wakefield
Honored Contributor

Re: recursion too deep

Hi,

Possibly you've got a macro definition problem, i.e. one macro text contains another macro, but this macro refers back to the original macro, so you get excessive recursion.

Post your sendmail.cf if possible.

rgds, Robin
Sanjiv Sharma_1
Honored Contributor

Re: recursion too deep

Hi Robin,

I have attached my sendmail.cf.
Everything is possible
Sanjiv Sharma_1
Honored Contributor

Re: recursion too deep

Hi Robin,

I have attached my sendmail.cf.
Everything is possible
Sanjiv Sharma_1
Honored Contributor

Re: recursion too deep

Hi,

# cd /etc/mail
# mv sendmail.cf org.sendmail.cf
# /sbin/init.d/sendmail stop
/sbin/init.d/sendmail[116]: .: recursion too deep.

Even if the sendmail.cf file is not available it gives the same error.

I have copied sendmail.cf from another server but still the same error when I try to stop sendmail.

Any idea?

Everything is possible
Paula J Frazer-Campbell
Honored Contributor

Re: recursion too deep

Hi

Try sendmail start

then sendmail stop


Paula
If you can spell SysAdmin then you is one - anon
Bruno Vidal
Respected Contributor

Re: recursion too deep

Hi,
It sound like that you have bad file under /etc/rc.config.d
ie: [116] mean error at line 116 of this script.
Go and look at this line: it is:
. /etc/rc.config

-> it source all files under /etc/rc.config.d
Under this directory you shouldn't have any scripts, it should be only variables. Try to execute . /etc/rc.config and try to add a set -x in it in order to find which files is wrong.
Good luck.
Michael Steele_2
Honored Contributor

Re: recursion too deep

See if you have duplicate files in /etc/rc.config.d, most notably for sendmail.

Here's are two related links for 'recursion too deep' and sendmail was not indicated in either:

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x184eaf48a9e5d5118ff40090279cd0f9,00.html

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xadba3a7b3682d611abdb0090277a778c,00.html
Support Fatherhood - Stop Family Law
Sridhar Bhaskarla
Honored Contributor

Re: recursion too deep

Hi Sanjiv,

Look at your /etc/rc.config.d/mailsvrs script. Make sure it is not the same as /sbin/init.d/sendmail script. Basically it should not have anything other than the following.

SENDMAIL_SERVER=1
export SENDMAIL_SERVER_NAME=

+ some comments.

-Sri

You may be disappointed if you fail, but you are doomed if you don't try
Bill Hassell
Honored Contributor
Solution

Re: recursion too deep

If you are using the sendmail start/stop script, run the script in debug mode and see what happens at the end:

sh -x /sbin/init.d/sendmail stop

You may see the script calling something unexpected or following a strange PATH location.


Bill Hassell, sysadmin
Martin Robinson
Frequent Advisor

Re: recursion too deep

At a guess from the message you have posted, /etc/rc.config is itself calling /etc/r.config - hence 'recursion too deep'.