1846620 Members
1643 Online
110256 Solutions
New Discussion

Re: named error

 
rana sarkar
Advisor

named error

Getting the following error on named start.

#/sbin/init.d/named start
/sbin/init.d/named [74]: -D: not found
6 REPLIES 6
Ganesan R
Honored Contributor

Re: named error

Hi,

Have you set the NAMED variable to 1 in the following file?

/etc/rc.config.d/namesvrs
Best wishes,

Ganesh.

Re: named error

you probably have some junk files in the /etc/rc.config.d directory. There should only be the startup configuration files in this directory - no backups or copies of files, and no junk files.

The following code snippet should help you find the offending file:

ls /etc/rc.config.d/* | while read fname
do
echo ${fname}: \c
. ${fname}
done 2>&1 | more

You should see the name of each file in /etc/rc.config.d and any errors it produces...

HTH

Duncan

I am an HPE Employee
Accept or Kudo
TTr
Honored Contributor

Re: named error

I think Duncan got it. Line 74 in /sbin/init.d/named is ". /etc/rc.config" which is sourcing all the config files in /etc/rc.config.d. So check if there are any copies or backup files in /etc/rc.config.d and delete them.

If you don't find any extraneous files in /etc/rc.config.d then look in the /etc/rc.config.d/syslogd file. It is the only file that contains a "-D" as an option setting. Check the syntax and fix it as needed.
rana sarkar
Advisor

Re: named error

Getting the same error for some other script in init.d also

Re: named error

which just confirms that its a rogue file or rogue entry in a file in /etc/rc.config.d/

did you run the code snippet I posted above? that should find the probelm for you...

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Taifur
Respected Contributor

Re: named error

HI Rana

You can check below link as follows for named service ,

http://docs.hp.com/en/5991-6548/ch02.html
http://docs.hp.com/en/B2355-90147/ch03s12.html

Rgds//
Taifur