From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1328 Path: news.gmane.org!not-for-mail From: Alex Efros Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: graceful restart under runit Date: Wed, 15 Nov 2006 18:08:50 +0200 Organization: asdfGroup Inc., http://powerman.asdfGroup.com/ Message-ID: <20061115160850.GA26987@home.power> References: <20061115114754.GA3759@fly.srk.fer.hr> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1163606964 14773 80.91.229.2 (15 Nov 2006 16:09:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 15 Nov 2006 16:09:24 +0000 (UTC) Cc: Dra?en Ka?ar Original-X-From: supervision-return-1564-gcsg-supervision=m.gmane.org@list.skarnet.org Wed Nov 15 17:09:21 2006 Return-path: Envelope-to: gcsg-supervision@gmane.org Original-Received: from antah.skarnet.org ([212.85.147.14]) by ciao.gmane.org with smtp (Exim 4.43) id 1GkNJl-0007sA-Cd for gcsg-supervision@gmane.org; Wed, 15 Nov 2006 17:08:54 +0100 Original-Received: (qmail 32657 invoked by uid 76); 15 Nov 2006 16:09:14 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Archive: Original-Received: (qmail 32651 invoked from network); 15 Nov 2006 16:09:14 -0000 Original-To: supervision@list.skarnet.org Mail-Followup-To: supervision@list.skarnet.org, Dra?en Ka?ar Content-Disposition: inline In-Reply-To: <20061115114754.GA3759@fly.srk.fer.hr> User-Agent: Mutt/1.5.13 (2006-08-11) Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1328 Archived-At: Hi! On Wed, Nov 15, 2006 at 12:47:54PM +0100, Dra?en Ka?ar wrote: > Say I have a TCP server which listens on incoming connections on some TCP > port. Occasionaly I'd like to install and run a new version of the server > executable. Server source is under my control, for all intents and > purposes. [...] > Is there a way to get around this? Probably you can just fork() after receiving SIGUSR1 and exit from parent leaving child to process existing connection. -- WBR, Alex.