From owner-freebsd-questions Fri Jul 28 16: 4:12 2000 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (zoom1-017.telepath.com [216.14.1.17]) by hub.freebsd.org (Postfix) with SMTP id 10EBE37B510 for ; Fri, 28 Jul 2000 16:04:08 -0700 (PDT) (envelope-from mwm@mired.org) Received: (qmail 42183 invoked by uid 100); 28 Jul 2000 23:04:05 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14722.4453.850059.202459@guru.mired.org> Date: Fri, 28 Jul 2000 18:04:05 -0500 (CDT) To: questions@FreeBSD.ORG Subject: Re: What are the steps to start a binary at startup? In-Reply-To: References: X-Mailer: VM 6.72 under 21.1 (patch 10) "Capitol Reef" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Hi > Hopefully someone can help me with this, it's getting a bit frustrating. I've run into this kind of thing before, possibly my earlier experiences will help. > I can't get bpalogin to stay running if it's launched by rc ( ie. > /usr/local/etc/rc.d). The client starts but then exits without any errors. If you've got ports installing into /usr/local (which is the default), I'd recommend moving this to someplace else and setting local_startup in /etc/rc.conf to include that "someplace else". Personally, I put ports in /usr/opt, and reserve /usr/local for locally built tools that may not have an easy way to change that. > I've even tried running it in the foreground during startup to see if it > would exit, but it doesn't. Also tried running it with between "nohup" and > "&" with its 'remain in foreground' switch set. > > It almost seems like it's being killed by FreeBSD in some sort of process > cleanup. Is this possible? or likely? Any ideas? That's pretty much it. The problem I ran into was that something in the startup sequence was sending HUP signals to my daemon to force it to reread their it's files. Try ignoring HUP signals, and see if that helps.