From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1102 Path: news.gmane.org!not-for-mail From: Alex Efros Newsgroups: gmane.comp.sysutils.supervision.general Subject: svwaitup != sv start Date: Thu, 6 Apr 2006 23:16:47 +0300 Organization: asdfGroup Inc., http://powerman.asdfGroup.com/ Message-ID: <20060406201647.GB19589@home.power> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1144354623 3334 80.91.229.2 (6 Apr 2006 20:17:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 6 Apr 2006 20:17:03 +0000 (UTC) Original-X-From: supervision-return-1338-gcsg-supervision=m.gmane.org@list.skarnet.org Thu Apr 06 22:16:52 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 1FRauO-00061n-GL for gcsg-supervision@gmane.org; Thu, 06 Apr 2006 22:16:48 +0200 Original-Received: (qmail 1534 invoked by uid 76); 6 Apr 2006 20:03:00 -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 1528 invoked from network); 6 Apr 2006 20:03:00 -0000 Original-To: supervision@list.skarnet.org Mail-Followup-To: supervision@list.skarnet.org Content-Disposition: inline User-Agent: Mutt/1.5.11 Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1102 Archived-At: Hi! I found some differences between `svwaitup` logic and `sv start`: 1) I don't see a way how to "wait until service will be up and running for at least X seconds". This lead to race condition error, for example if we have this in /service/getty-tty5/run: #!/bin/sh /etc/setfont tty5 exit exec /sbin/agetty 38400 tty5 linux and then will run `sv start getty-tty5` a couple of times we will see some success and some failures. 2) If ./finish is running now, `sv start` will report service as running, but this is wrong. (I've "sleep 3" in ./finish for XWindow service, to prevent X from restarting too fast.) Any ideas how to use `sv start` to make it as reliable as `svwaitup` was? -- WBR, Alex.