Operating System - HP-UX
1834445 Members
2147 Online
110067 Solutions
New Discussion

Bootproblems/rc.log errors strange

 
SOLVED
Go to solution

Bootproblems/rc.log errors strange

 
5 REPLIES 5
John Palmer
Honored Contributor
Solution

Re: Bootproblems/rc.log errors strange

This sounds like an error in one of the scripts in /etc/rc.config.d. Lots of the startup scripts run '/etc/rc.config' (have a look at it). This 'dots' almost every file in /etc/rc.config.d in order to set environment variables.

Check out scripts which have changed recently in /etc/rc.config.d. Once you've found and corrected the problem, run '. /etc/rc.config' to check if you've solved it.

Regards,
John

Re: Bootproblems/rc.log errors strange

I've recently installed ssh.

But why are startupscripts like S320hostname not functioning?

Regards,

Leon

Re: Bootproblems/rc.log errors strange

Problem solved, I've removed the startup scripts for the ssh daemon.

Regards,

Leon
John Palmer
Honored Contributor

Re: Bootproblems/rc.log errors strange

/sbin/init.d/hostname calls /etc/rc.config. Extract...

start)
if [ -f /etc/rc.config ] ; then
. /etc/rc.config
else
echo "ERROR: /etc/rc.config defaults file MISSING"
fi


Note that some of the others (which don't fail) only call their own config script. For example, cron's startup script has this:

'start')
if [ -f /etc/rc.config.d/cron ] ; then
. /etc/rc.config.d/cron

Thi only runs the cron script not *ALL* the scripts.

Regards,
John
James R. Ferguson
Acclaimed Contributor

Re: Bootproblems/rc.log errors strange

Hi Leon:

Make sure that files in the '/etc/rc.config.d/' directory are named only with extensions that use these:

[.,~#]

characters. Files so named are are specifically excluded from sourcing. Others are not.

Regards!

...JRF...