From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/2012 Path: news.gmane.org!not-for-mail From: Gerrit Pape Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: Bug for sv status in lsb mode Date: Thu, 3 Jun 2010 09:04:05 +0000 (UTC) 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 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1275555865 8767 80.91.229.12 (3 Jun 2010 09:04:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 3 Jun 2010 09:04:25 +0000 (UTC) To: supervision@list.skarnet.org Original-X-From: supervision-return-2247-gcsg-supervision=m.gmane.org@list.skarnet.org Thu Jun 03 11:04:23 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 1OK6Lc-0006nM-Ae for gcsg-supervision@lo.gmane.org; Thu, 03 Jun 2010 11:04:20 +0200 Original-Received: (qmail 2897 invoked by uid 76); 3 Jun 2010 09:06:22 -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 2889 invoked from network); 3 Jun 2010 09:06:22 -0000 X-Injected-Via-Gmane: http://gmane.org/ connect(): No such file or directory Original-Lines: 34 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 77.245.32.76 (Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.18) Gecko/2010021719 Iceweasel/3.0.6 (Debian-3.0.6-3)) Xref: news.gmane.org gmane.comp.sysutils.supervision.general:2012 Archived-At: 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.