Operating System - HP-UX
1833007 Members
3013 Online
110048 Solutions
New Discussion

rc instead rcp now startup errors

 
Susan Prosser
Advisor

rc instead rcp now startup errors

I accidentally typed rc -p rather than rcp. Now when I reboot the system I get loads of errors in the /etc/rc.log

file Configure LAN interfaces
Output from "/sbin/rc2.d/S340net start":
----------------------------
/sbin/rc2.d/S340net[118]: If: not found.
Start name server daemon
Output from "/sbin/rc2.d/S370named start":
----------------------------
/sbin/rc2.d/S370named[48]: If: not found.
"/sbin/rc2.d/S370named start" SKIPPED

on many of the files. I have checked the file dates in /sbin/init.d and none show a modified date that coincides with me running this command.

/etc/rc.config or /sbin/rc.utils + /etc.inittab have no mod date on them

What am I missing?

Thanks in Advance
7 REPLIES 7
Jean-Louis Phelix
Honored Contributor

Re: rc instead rcp now startup errors

Hi,

I'm not so sure that your problem is related to your bad typing. I would rather suspect a typo in /etc/rc.config.d files. Try :

grep "If" /etc/rc.conf.d/*

and look at the file.

Regards.
It works for me (© Bill McNAMARA ...)
Susan Prosser
Advisor

Re: rc instead rcp now startup errors

I did do that - to no avail. Plus I checked all the mod dates in that directory, none had changed since I installed the system. I dont remember seeing the error messages when I first rebooted it after the install :-(

Anyway decided to rebuild the server!

Thanks for your help
Susan Prosser
Advisor

Re: rc instead rcp now startup errors

Update

Reinstalled the server. Loaded the HWE1100 patches, rebooted and guess what.....

rc.log errors -exactly as before
Michael Steele_2
Honored Contributor

Re: rc instead rcp now startup errors

Do you have duplicates in /ec/rc.config.d?

cat /etc/rc.config.d/* | sort -n | more

-or-

ls -lart /etc/rc.config.d/*

Boot into single user and come up one level at a time.

'sh -x /ec/rc.config'

-and-

init 1,2,3

Support Fatherhood - Stop Family Law
V. Nyga
Honored Contributor

Re: rc instead rcp now startup errors

Hi,

have you looked at 'rc'? man rc
Check your /sbin compare with my 'll' at the attached file.

Volkmar
*** Say 'Thanks' with Kudos ***
John Poff
Honored Contributor

Re: rc instead rcp now startup errors

Hi,

Have you tried this?

sh -x /sbin/rc2.d/S370named start

It might show you just what the script is choking on. Also, since it is happening in many scripts, I would suspect the /etc/rc.config file which gets sourced into nearly all of those scripts. I'd suggest trying this also:

sh -x /etc/rc.config

Can you post your rc.config file?

JP
Frank Slootweg
Honored Contributor

Re: rc instead rcp now startup errors

> /sbin/rc2.d/S340net[118]: If: not found.
...
> /sbin/rc2.d/S370named[48]: If: not found.

What is on these lines, i.e. on line 118 of S340net and on line 48 of S370named?