From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/529 Path: main.gmane.org!not-for-mail From: Gerrit Pape Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: ypserv Date: Fri, 23 Jul 2004 10:44:34 +0000 Message-ID: <20040723104437.29858.qmail@865e24add18646.315fe32.mid.smarden.org> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1090579465 21755 80.91.224.253 (23 Jul 2004 10:44:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 23 Jul 2004 10:44:25 +0000 (UTC) Original-X-From: supervision-return-767-gcsg-supervision=m.gmane.org@list.skarnet.org Fri Jul 23 12:44:18 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 1BnxXG-0004gg-00 for ; Fri, 23 Jul 2004 12:44:18 +0200 Original-Received: (qmail 21007 invoked by uid 76); 23 Jul 2004 10:44:39 -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 21002 invoked from network); 23 Jul 2004 10:44:39 -0000 Original-To: supervision@list.skarnet.org Mail-Followup-To: supervision@list.skarnet.org Content-Disposition: inline In-Reply-To: Xref: main.gmane.org gmane.comp.sysutils.supervision.general:529 X-Report-Spam: http://spam.gmane.org/gmane.comp.sysutils.supervision.general:529 On Thu, Jul 22, 2004 at 09:39:27AM +1200, Tim Philips wrote: > I have had a good look on the http://smarden.org/runit/ site for a run > script to get ypserv running under (djb) supervise. I have done many > google searches and found nothing of interested, we are using an RPM > installation of ypserv version 2.8-0.72E. > > The man page for ypserv doesn't show it as being able to be run in the > foreground so I used fghack without luck to attempt to run in. The ypserv program from ypserv-2.13 provides a -d option to run it in debug mode, also preventing it from backgrounding. This is not optimal as, according to the documentation, lots of debug output will be printed to standard error. It may be worth to request a ``run in foreground'' switch independently from running in debug mode; shouldn't be that hard to implement, look for debug_flag in ypserv/ypserv.c:main(). It might help to point upstream to this page http://homepages.tesco.net/~J.deBoynePollard/FGA/unix-daemon-design-mistakes-to-avoid.html Regards, Gerrit.