Article delegate-en/1579 of [1-5169] on the server localhost:119
  upper oldest olders older1 this newer1 newers latest
search
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]

Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: DNS server / forking?
26 Mar 2002 16:09:59 GMT "Ken Godee" <pfmdabdyi-gztnjk2afbnr.ml@ml.delegate.org>
The Perfect Image


<color><param>0100,0100,0100</param>Thanks for your reply.


Here's the choices from Daemontools service program.


<FontFamily><param>Courier New</param>svc<FontFamily><param>Times New Roman</param><bigger> applies all the options to each service in turn. 
Here are the options: 

<paraindent><param>out</param><FontFamily><param>Courier New</param><smaller>-u<FontFamily><param>Times New Roman</param><bigger>: Up. If the service is not running, start it. If 
the service stops, restart it. </paraindent>

<paraindent><param>out</param><FontFamily><param>Courier New</param><smaller>-d<FontFamily><param>Times New Roman</param><bigger>: Down. If the service is running, send it a 
TERM signal and then a CONT signal. After it 
stops, do not restart it. </paraindent>

<paraindent><param>out</param><FontFamily><param>Courier New</param><smaller>-o<FontFamily><param>Times New Roman</param><bigger>: Once. If the service is not running, start it. 
Do not restart it if it stops. </paraindent>

<paraindent><param>out</param><FontFamily><param>Courier New</param><smaller>-p<FontFamily><param>Times New Roman</param><bigger>: Pause. Send the service a STOP signal. </paraindent>

<paraindent><param>out</param><FontFamily><param>Courier New</param><smaller>-c<FontFamily><param>Times New Roman</param><bigger>: Continue. Send the service a CONT signal. </paraindent>

<paraindent><param>out</param><FontFamily><param>Courier New</param><smaller>-h<FontFamily><param>Times New Roman</param><bigger>: Hangup. Send the service a HUP signal. </paraindent>

<paraindent><param>out</param><FontFamily><param>Courier New</param><smaller>-a<FontFamily><param>Times New Roman</param><bigger>: Alarm. Send the service an ALRM signal. </paraindent>

<paraindent><param>out</param><FontFamily><param>Courier New</param><smaller>-i<FontFamily><param>Times New Roman</param><bigger>: Interrupt. Send the service an INT signal. </paraindent>

<paraindent><param>out</param><FontFamily><param>Courier New</param><smaller>-t<FontFamily><param>Times New Roman</param><bigger>: Terminate. Send the service a TERM signal. </paraindent>

<paraindent><param>out</param><FontFamily><param>Courier New</param><smaller>-k<FontFamily><param>Times New Roman</param><bigger>: Kill. Send the service a KILL signal. </paraindent>

<paraindent><param>out</param><FontFamily><param>Courier New</param><smaller>-x<FontFamily><param>Times New Roman</param><bigger>: Exit. <FontFamily><param>Courier New</param><smaller>supervise<FontFamily><param>Times New Roman</param><bigger> will exit as soon as the 
service is down. If you use this option on a 
stable system, you're doing something wrong; 
<FontFamily><param>Courier New</param><smaller>supervise<FontFamily><param>Times New Roman</param><bigger> is designed to run forever. </paraindent>


From the above options I've been using -u (up) and

the -d (down / TERM). Maybe I should try the -k 
(kill) instead of the -d .


Anyhow this is getting beyond your software 
"Delegate" and I'll try to play around alittle and if

all else fails I can do the para:1 option or maybe 

use a SIGUSER1 option, I just saw a patch for 
daemontools to add a control option -1 and -2 for 

SIGUSER1(2) options.


Once again Delegate is working really well in our 
firewall setup and we appriecate your work.


<color><param>7F00,0000,0000</param><FontFamily><param>Arial</param><smaller>> On 03/24/02(16:35) you Kenneth Godee

> <<peqdabdyi-gztnjk2afbnr.ml@ml.delegate.org> wrote in

> <<_A1572@delegate-en.ML_>

>  |I have one problem with using DNS server/proxy.

>  |I'm using daemontools/supervise to make sure my

>  proxy's stay up. |When I start the DNS proxy it

>  "forks" off another |DNS process and if you stop

>  the first, the second process remains. |I guess I

>  don't under stand why it forks off a second

>  process?

> 

> It is to share the load on the DNS-DeleGate

> server, and you can control the parallelism by

> DNSCONF=para:N parameter.  If you don't need to

> make it work in parallel, specify like this:

> 

> DNSCONF=para:1

> 

> 

>  |I don't want to leave these second processes

>  around. |Is there anything I can do? |I'm

>  starting the server as such..... |

>  |/sbin/delegate -f +=/etc/dns-proxy.conf |

>  |*dns-proxy.conf* |-Tx |-P192.168.1.1:53

>  |SERVER=dns |PERMIT=dns:*:192.168.*

>  |RELIABLE=192.168.* |TIMEOUT=shutout:0

>  |ADMIN="deld@perfect-image.." | | |The last

>  couple of lines of my dns-proxy log... |

>  |DNS_MINTTL=21600 |-- Fork(DNS): 1786 -> 1808 |

>  |If I stop the 1786 process, the 1808 remains.

> 

> How did you stopped the process?

> If you terminated it by "kill SIGTERM" or

> "delegated -Fkill -P53", all parallel processes

> must be terminated as a whole.

> 

> Cheers,

> Yutaka

> --

>   @ @ Yutaka Sato <<y.sato@delegate.org>

>   http://www.delegate.org/y.sato/

>  ( - ) National Institute of Advanced Industrial

>  Science and Technology (AIST)

> _<<   >_ 1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568

> Japan

> 



<nofill>
The Perfect Image Graphics Co.
2429 W. 12th St.
Tempe, AZ 85281  

000-000-0006     

  admin search upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
@_@V