This is my stop/start routines (with Perl CGI):

sub named_start {

system "/path/named -u nobody";
return $? == 0 ? 1 : 0;
}

sub named_stop {

system "/path/rndc stop";
return $? == 0 ? 1 : 0;
}

So how could I call them safely? Thanks again.


--- On Tue, 10/28/08, Jeremy C. Reed wrote:

> From: Jeremy C. Reed
> Subject: Re: is it safe to chmod +s named?
> To: "Jeff Pang"
> Cc: bind-users@isc.org
> Date: Tuesday, October 28, 2008, 10:06 PM
> On Tue, 28 Oct 2008, Jeff Pang wrote:
>
> > I need to let apache start/stop named.
> > I set: chmod +s named, so httpd (run with nobody) can

> stop/start it.
> > Is it safe for this behavior? thanks.

>
> How does your named listen on network socket?
>
> Can you use rndc reconfig or rndc reload instead?