Operating System - HP-UX
1834551 Members
4311 Online
110069 Solutions
New Discussion

Re: /sbin/rc Script error

 
SOLVED
Go to solution
Radhakrishnan Venkatara
Trusted Contributor

/sbin/rc Script error

Morning when we started our G50 server loaded with HPUX 10.20 ,when the /sbin/rc was initializing it gave an error...

/sbin/rc[61] :Syntax error [newline or ;] not expected

and later none of the services are getting started. we tried rebooting the serer.but no results.

it seems somthing wrong with one of the rc scripts .

any help on this will be highly appreciated.

Radhakrishnan
Negative thinking is a highest form of Intelligence
2 REPLIES 2
Robin Wakefield
Honored Contributor
Solution

Re: /sbin/rc Script error

Hi Radhakrishnan,

Line 61 of /sbin/rc is where it sources /etc/rc.config. If you can run a shell on the server, execute this script in verbose mode:

sh -x /etc/rc.config

to try and highlight the offending rc script.

Rgds, Robin.
Andreas Voss
Honored Contributor

Re: /sbin/rc Script error

Hi,

check all your files in /etc/rc.config.d/*
for correct syntax.
Only variable definitons should be there.

Regards