From owner-freebsd-questions Wed Feb 28 11:27:20 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-65-26-235-186.mmcable.com [65.26.235.186]) by hub.freebsd.org (Postfix) with SMTP id EA8B937B71A for ; Wed, 28 Feb 2001 11:27:15 -0800 (PST) (envelope-from mwm@mired.org) Received: (qmail 41573 invoked by uid 100); 28 Feb 2001 19:27:15 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15005.20755.398545.110975@guru.mired.org> Date: Wed, 28 Feb 2001 13:27:15 -0600 To: Drew Tomlinson Cc: "FreeBSD Questions (E-mail)" Subject: RE: Startup Script In-Reply-To: References: X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" 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 Drew Tomlinson types: > > I don't know anything about dynipclient, but the script looks fine to > > me - assuming that dynipclient is somehow detaching itself so the > > command the shell started is exiting. Are you checking for > > "dynipclient", or for pid 195? If the former, dynipclient may have a > > different name than you expect, so check for the latter. > > This script also works fine when invoked from the command line: You already mentioned that. > > > I am a newbie and know basically nothing about scripts. > > But I suspect what > > > might be happening is that the dynipclient starts in the > > first line but then > > > is stopped because of the command in the second. Am I > > correct? Any ideas? > > > > No, that's not correct. > > > > If something is causing the server part of the package to exit, see > > what you can do to get a log - preferably detailed - from the > > server. If www.dynip.com provides a sample startup script, you might > > check that and see if they are doing anything odd when it starts the > > program. > OK, I would like to get a log but I don't know how to go about that. Do you > have any suggestions? I assume I need to pipe the output to a file? I > don't even know how to do that exactly. Sorry for the "dumb" questions and > thanks for your help. Well, you can check the various system logs to see if it put anything there. Redirecting might work; if so, add the sequence '>/var/run/dynip.log 2>&1' (minus the ''s, of course) to the line that starts it. On the other hand, in the process of daemonizing itself, it may close all those things. In which case, you'll need to check with the dynip folks to see how to get it to log things. Or check the source, if you've got that. http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message