From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/2013 Path: news.gmane.org!not-for-mail From: Erik Wright Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: Bug for sv status in lsb mode Date: Thu, 3 Jun 2010 10:12:15 -0400 Message-ID: References: <8F9355C5-C168-4AD7-8B6C-502416E7EECC@zoy.org> <94175859-2733-4ACF-85E9-DD5FF627F23B@zoy.org> <17A739BC-94BA-4611-A523-6978934F0D61@zoy.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1275574346 10690 80.91.229.12 (3 Jun 2010 14:12:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 3 Jun 2010 14:12:26 +0000 (UTC) Cc: supervision@list.skarnet.org To: Gerrit Pape Original-X-From: supervision-return-2248-gcsg-supervision=m.gmane.org@list.skarnet.org Thu Jun 03 16:12:22 2010 connect(): No such file or directory Return-path: Envelope-to: gcsg-supervision@lo.gmane.org Original-Received: from antah.skarnet.org ([212.85.147.14]) by lo.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1OKB9h-00082J-RV for gcsg-supervision@lo.gmane.org; Thu, 03 Jun 2010 16:12:21 +0200 Original-Received: (qmail 31120 invoked by uid 76); 3 Jun 2010 14:14:25 -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 31111 invoked from network); 3 Jun 2010 14:14:25 -0000 In-Reply-To: X-Mailer: Apple Mail (2.936) Xref: news.gmane.org gmane.comp.sysutils.supervision.general:2013 Archived-At: On 3-Jun-10, at 5:04 AM, Gerrit Pape wrote: > Erik Wright akoha.com> writes: >> This is a follow-up to a thread from last summer. Mathieu Poumeyrol >> reported >> that 'sv status' returned 0 even when the service was down. Gerrit >> replied that >> this was expected behaviour when sv is called with a basename of >> 'sv'. >> >> Unfortunately, I'm seeing this behaviour even when calling sv with >> another >> basename. To illustrate, here is a shell session snippet on Ubuntu: >> >> -------- >> root domU-12-31-39-0C-1D-B1:~# ls -l /etc/init.d/celeryd >> lrwxrwxrwx 1 root root 11 2010-05-14 18:42 /etc/init.d/celeryd -> / >> usr/bin/sv >> root domU-12-31-39-0C-1D-B1:~# /etc/init.d/celeryd status; >> echo $? >> down: celeryd: 1576s, normally up; run: log: (pid 711) 1043375s >> 0 >> root domU-12-31-39-0C-1D-B1:~# dpkg -s runit >> Package: runit >> ... >> Version: 2.0.0-1ubuntu3.1 >> root domU-12-31-39-0C-1D-B1:~# cat /etc/issue >> Ubuntu 9.10 \n \l >> -------- >> >> Any ideas what might be causing this? > > Hi, there was a bug discovered in this very thread, which has been > fixed > in runit version 2.1.0: > > * sv.c: fix exit code of status command in lsb mode (thx Mathieu > Poumeyrol) > > If you upgrade to the latest version, it should work fine. > > Regards, Gerrit. > Great news, Gerrit. Thanks! Is there a public source repository or change-log where these commit messages / release notes are available? -Erik