/etc/rc.d/named restart issue (command not found)


 
Thread Tools Search this Thread
Operating Systems BSD /etc/rc.d/named restart issue (command not found)
# 1  
Old 11-20-2011
/etc/rc.d/named restart issue (command not found)

Guys,

I am new to FreeBSD. I have this weird issue where when i issue the command "/etc/rc.d/named restart" i get --> command not found.
I am running BIND 9.6.-ESV-R3 on FreeBSD 8.2
I have added named_enable="YES" in rc.conf as per manual
named works great: No issue there. I just would like to be able to restart named without having to reboot my server.

Any help is much appreciated of course Smilie

Kind Regards,
# 2  
Old 11-20-2011
I don't use FreeBSD but the command is a bit like this...

# kill -HUP `cat /var/run/named.pid`

I'll explain: kill sends a signal to the process, the default signal is TERM, which asks the process kindly to terminate. The HUP option sends HANGUP, which asks the process to hang up on everyone, reload its configuration, and start listening again. A really stubborn process can be killed by the kernel itself, with the KILL option. This is how you restart services on UNIX. You would already know, but Linux devs like appeasing the stupid.

I should also point out I don't use freebsd, but I don't think there is a good reason to touch anything at all in /etc/rc.d, I am more of an OpenBSD person.
# 3  
Old 11-26-2011
I too don't have FreeBSD.

You are running as the root user aren't you?

First check that the script exists.
Code:
file /etc/rc.d/named

Then read the script. It may not have a "restart" option. More likely to have "stop" and "start" options.


Just in case this is basic.
Code:
You did type:
/sbin/rc2.d/named restart
not:
"/sbin/rc2.d/named restart"

# 4  
Old 11-27-2011
Guys,

Thank you very much for your reply.
I have reinstalled my server and now the command line "/etc/rc.d/named restart" works.
I really dont know what happend there but had to make it work because could not reboot my server every time.
Though, thank you again for all the details you have provided above. That is very interesting Smilie FreeBSD has a step learning curve but loads of fun.

Regards,

zongo
This User Gave Thanks to zongo For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Windows & DOS: Issues & Discussions

Windows batch command for deleting particular pattern named folders in temp

Hi All,' I need to write a windows bat program to delete particular folders with naming pattern scoped_dir45666 (for example)(including contents) with batch program. For that I am using below code: @echo off cd /D %temp% for /d %%D in (*) do rd /s /q "%%D" del /f /q * i got above... (0 Replies)
Discussion started by: onenessboy
0 Replies

2. Red Hat

No VolGroup00 found after restart of the system

I am facing the following issue after giving a restart (init 6) of my RHEL 5.9 system. As a result,the system is not starting after a restart. Can somebody help me to trouble shoot the issue. Red Hat nash version 5.1.19.6 starting Reading all physical volumes. This may take a while... ... (7 Replies)
Discussion started by: Anjan Ganguly
7 Replies

3. Shell Programming and Scripting

Want to terminate command execution when string found in the command output

Hi Experts, I am very much new to linux scripting, I am currently working on reducing my manual work and hence writing a script to automate few task. I am running below command to snmpwalk the router.. snmpwalk -v 3 -u WANDL_SU -a MD5 -A vfipmpls -x DES -X VfIpMpLs -l authPriv... (19 Replies)
Discussion started by: Hanumant.madane
19 Replies

4. Shell Programming and Scripting

When i am trying to execute export command within a shell script it is saying command not found.

I am running the export command within a view to use that value inside my build script. But while executing it it is saying "export command not found" My code is as follows: -------------------------- #!/bin/sh user="test" DIR="/bldtmp/"$user VIEW="test.view1" echo "TMPDIR before export... (4 Replies)
Discussion started by: dchoudhury
4 Replies

5. Red Hat

named caching server odd lookup issue!

Hello All, I have resubmitted this issue I am having as the my last post was moved to programming as the issue appeared to be specific to java but on further investigation this is not the case. The issues also arises when running the host command and appears to be either a problem with the... (1 Reply)
Discussion started by: Paragon1970
1 Replies

6. Boot Loaders

GRUB restart issue

hi guys I have an issue with my grub configuration I see I have this in my menu.lst file default=0 timeout=1 splashimage=(hd0,0)/grub/splash.xpm.gz hiddenmenu title CentOS (2.6.18-238.19.1.el5) root (hd0,0) kernel /vmlinuz-2.6.18-238.19.1.el5 ro... (2 Replies)
Discussion started by: kopper
2 Replies

7. SuSE

named service issue on Suse

Hi Experts, I have a virtual server of SUSE Linux Enterprise Server 10 (x86_64). I am having strange issue of Naming services. Every 1 or 2 hours, named service stops working on this server and then I have to start it from "/etc/init./named start" I am not getting clue, where should I start... (0 Replies)
Discussion started by: solaris_1977
0 Replies

8. Windows & DOS: Issues & Discussions

restart windows 2000 server using command line

Hi all expert, Anybody know how to restart the windows 2000 server through command line and without using any additional tool? Thanks :):) (2 Replies)
Discussion started by: wilsonSurya
2 Replies

9. Shell Programming and Scripting

how can i check in csh if command found or not found ?

hello all im trying to use in sun Solaris the information received from the top command now i several machines that dont have install the top program so when im running the script im geting error saying after im running this code : set MemoryInfo = `top | grep Memory` if (... (2 Replies)
Discussion started by: umen
2 Replies

10. AIX

Execute a command at the system restart

Hi Folks, I have an AIX server and I would like the server to run the command saprouter -r at every system restarts. It needs to be run by a specific user. How would I do that? Thanks!!! (1 Reply)
Discussion started by: brookingsd
1 Replies
Login or Register to Ask a Question