Operating System - HP-UX
1834604 Members
3797 Online
110069 Solutions
New Discussion

Re: /etc/rc[61]: basename not found.

 

/etc/rc[61]: basename not found.

Hello Administrators,

Normally I shutdown my server weekly once.
When I shutdown and restart my hp unix 10.20 server now,
I am getting the error messages as below:

/etc/rc[61]: basename not found
init command is respawning too rapidly
will try again in 5 minutes
check for possible errors
id: cons /usr/sbin/getty console console #system console

I am not getting anything in the screen after sometime.
The login prompt is not coming.

I went into single user mode.

I found all the error messages refer the /etc/inittab file.

Then, I found the problem. When I execute the
command,
"/sbin/rc" it is giving the error
/etc/rc[61]: basename not found.

I saw the file "basename" in the path /usr/bin/basename
I copied the file to the path /sbin and rebooted the server in
multi user mode.

Now I am getting error

crto: error couldn't open /usr/lib/dld.sh err no: 000000002
init command is respawning too rapidly
will try again in 5 minutes
check for possible errors
id: cons /usr/sbin/getty console console #system console

Anyone please help me immediately in solving the problem

B. Maruthamuthu.




1 REPLY 1
Kofi Arthiabah_1
Occasional Advisor

Re: /etc/rc[61]: basename not found.

You may have installed an rc script in the /etc/rc.config.d directory instead
of in its proper place /sbin/init.d/

Note that /etc/rc.config.d should contain only configuration components of your
rc scripts and not the scripts themselves...

Another way you can troubleshoot this is to run

sh -x /etc/rc

and keep your eyes open...

Good luck