From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1310 Path: news.gmane.org!not-for-mail From: Gerrit Pape Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: sv restart bug? Date: Wed, 1 Nov 2006 12:10:07 +0000 Message-ID: <20061101121007.22663.qmail@87e16a6bac1ed0.315fe32.mid.smarden.org> References: <20061024173834.GB14227@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 1162383005 21296 80.91.229.2 (1 Nov 2006 12:10:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 1 Nov 2006 12:10:05 +0000 (UTC) Original-X-From: supervision-return-1546-gcsg-supervision=m.gmane.org@list.skarnet.org Wed Nov 01 13:10:01 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 1GfEuf-00041o-Pu for gcsg-supervision@gmane.org; Wed, 01 Nov 2006 13:09:46 +0100 Original-Received: (qmail 21049 invoked by uid 76); 1 Nov 2006 12:10:07 -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 21044 invoked from network); 1 Nov 2006 12:10:07 -0000 Original-To: supervision@list.skarnet.org Mail-Followup-To: supervision@list.skarnet.org Content-Disposition: inline In-Reply-To: <20061024173834.GB14227@fly.srk.fer.hr> Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1310 Archived-At: On Tue, Oct 24, 2006 at 07:38:34PM +0200, Dra?en Ka?ar wrote: > I think I've found a small bug in runit 1.7.0. > > "sv restart " prints out status information describing state > before restart action. For example: > > {donat}~# sv stop inserter > ok: down: inserter: 0s, normally up > {donat}~# sv status inserter > down: inserter: 6s, normally up > {donat}~# sv restart inserter > ok: down: inserter: 13s, normally up <===== > {donat}~# sv status inserter > run: inserter: (pid 9437) 4s > > > It seems to me it should have printed the new state, just like "sv start" > does: > > {donat}~# sv stop inserter > ok: down: inserter: 0s, normally up > {donat}~# sv start inserter > ok: run: inserter: (pid 9539) 0s Yes, that looks like a bug, thanks for reporting. From a first quick glance it seems 'restart' lets sv send the commands 'term', 'cont', 'up' -in that order-, and sv checks for 'term' to take effect instead of 'up'. Regards, Gerrit.