From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1963 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: Fri, 17 Jul 2009 09:08:34 +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=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1247821800 22655 80.91.229.12 (17 Jul 2009 09:10:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 17 Jul 2009 09:10:00 +0000 (UTC) To: supervision@list.skarnet.org Original-X-From: supervision-return-2198-gcsg-supervision=m.gmane.org@list.skarnet.org Fri Jul 17 11:09:53 2009 Return-path: Envelope-to: gcsg-supervision@gmane.org Original-Received: from antah.skarnet.org ([212.85.147.14]) by lo.gmane.org with smtp (Exim 4.50) id 1MRjR1-0000zw-7o for gcsg-supervision@gmane.org; Fri, 17 Jul 2009 11:08:55 +0200 Original-Received: (qmail 10269 invoked by uid 76); 17 Jul 2009 09: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 10261 invoked from network); 17 Jul 2009 09:10:07 -0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 38 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: main.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.9) Gecko/2009050519 Iceweasel/3.0.6 (Debian-3.0.6-1)) Original-Sender: news Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1963 Archived-At: Mathieu Poumeyrol zoy.org> writes: > Le 13 juil. 09 à 16:13, Mathieu Poumeyrol a écrit : > > Le 13 juil. 09 à 15:42, Charlie Brady a écrit : > > It's not explicit here, but required for LSB compliance. > > > > see http://refspecs.freestandards.org/LSB_3.1.0/LSB-Core-generic/LSB-Core-generic/iniscrptact.html > > > > As a matter of fact, sv code looks like it is meant to achieve this, > > but fails because of the side effect on the "r" global. > > Sorry, it is actually explicit in the "Exit codes" last paragraph... > > If the command is status, it exits 3 if the service is down, and 4 if > the status is unknown. It exits 2 on wrong usage, and 151 on error. Hi, this is a bug in the documentation then, the complete paragraph is If sv is called with a base name other than sv, it exits 1 on timeout or trouble sending the command. If the command is status, it exits 3 if the service is down, and 4 if the status is unknown. It exits 2 on wrong usage, and 151 on error. These exit codes only apply if sv is called with a different basename. # sv stop getty-5 ok: down: getty-5: 0s, normally up # ln -s $(which sv) /tmp/getty-5 # /tmp/getty-5 status down: getty-5: 4s, normally up # echo $? 3 # Any suggestions on how to improve the man page? Thanks, Gerrit.