From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/548 Path: main.gmane.org!not-for-mail From: Tim Philips Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: ypserv Date: Sat, 31 Jul 2004 11:24:27 +1200 (NZST) Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: sea.gmane.org 1091229884 23340 80.91.224.253 (30 Jul 2004 23:24:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 30 Jul 2004 23:24:44 +0000 (UTC) Cc: supervision@list.skarnet.org Original-X-From: supervision-return-786-gcsg-supervision=m.gmane.org@list.skarnet.org Sat Jul 31 01:24:35 2004 Return-path: Original-Received: from antah.skarnet.org ([212.85.147.14]) by deer.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 1Bqgjr-00025m-00 for ; Sat, 31 Jul 2004 01:24:35 +0200 Original-Received: (qmail 32636 invoked by uid 76); 30 Jul 2004 23:24:53 -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 32630 invoked from network); 30 Jul 2004 23:24:52 -0000 X-X-Sender: timp@bigbox.iserve.net.nz Original-To: Paul Jarc In-Reply-To: Xref: main.gmane.org gmane.comp.sysutils.supervision.general:548 X-Report-Spam: http://spam.gmane.org/gmane.comp.sysutils.supervision.general:548 On Wed, 21 Jul 2004, Paul Jarc wrote: Hi Paul, Sorry for the delay in my reply, I attempted to run it closing stdin but it didn't work :-( In the short term as this is quite a heavy used server I have written a script which just checks to see if the process is running and if not restarts it, seems to be working fine (no idea why its failing, doesn't return enough information). Cheers for your help. > Tim Philips wrote: > > I have also tried many different ways of putting things in the run file > > without luck either. > > Extreme overkill, but it should work for anything: run it under a > system call tracer, following forks. E.g., for Linux: > #!/bin/sh > exec 2>&1 > exec strace -f -o /dev/null ypserv .... > > There should be a better way, though - have you tried closing stdin > when using fghack, or does ypserv close that too? > exec fghack ypserv ... <&- > > > paul > -- Tim Philips ----------------------------------------------------- iSERVE - You're in Business www.iserve.co.nz | info@iserve.co.nz | 0800 144 737 =====================================================