From owner-freebsd-questions Fri Feb 23 8:20:58 2001 Delivered-To: freebsd-questions@freebsd.org Received: from lcmail2.lc.ca.gov (lcmail2.lc.ca.gov [165.107.12.11]) by hub.freebsd.org (Postfix) with ESMTP id 2D7B837B401 for ; Fri, 23 Feb 2001 08:20:53 -0800 (PST) (envelope-from drewt@writeme.com) Received: from CONVERSION-DAEMON by lcmail2.lc.ca.gov (PMDF V5.2-27 #40821) id <0G9700101XERTQ@lcmail2.lc.ca.gov> for freebsd-questions@FreeBSD.org; Fri, 23 Feb 2001 08:20:52 -0800 (PST) Received: from tagalong ([165.107.42.167]) by lcmail2.lc.ca.gov (PMDF V5.2-27 #40821) with SMTP id <0G9700191XELVZ@lcmail2.lc.ca.gov> for freebsd-questions@FreeBSD.org; Fri, 23 Feb 2001 08:20:45 -0800 (PST) Date: Fri, 23 Feb 2001 08:20:42 -0800 From: Drew Tomlinson Subject: RE: Newbie Help Diagnosing Startup Script In-reply-to: To: 'Odhiambo Washington' Cc: "FreeBSD Questions (E-mail)" Message-id: MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0) Content-type: text/plain; charset="us-ascii" Content-transfer-encoding: 7bit Importance: Normal X-Priority: 3 (Normal) X-MSMail-priority: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > -----Original Message----- > From: Odhiambo Washington [mailto:wash@iconnect.co.ke] > Sent: Thursday, February 22, 2001 9:14 PM > To: Drew Tomlinson > Subject: Re: Newbie Help Diagnosing Startup Script > > > * Drew Tomlinson [20010222 22:16]: > writing on the subject 'RE: Newbie Help Diagnosing Startup Script' > > Drew> > I think you're missing something small, that should > make the thing be > Drew> > started in the background. > Drew> > Where does it put its runtime pid??? > Drew> > Drew> It actually puts it in its own .conf file. The script > works when I start it > Drew> from the command prompt. It just doesn't appear to run > on startup but I > Drew> don't know how to confirm this. Is there some log file > that I can read to > Drew> see what's happening when the system starts up? If > not, can I create one? > Drew> How? > Drew> > Drew> Thanks for your help! > > So did the one I gave you work for you? > Something else, if you let me know about what you're doing > then I can give > you more info. But I know there are many people using dynamic > dns. I'll > take a look at dyndns.org?? and give you feedback. I didn't actually try it but I will. I don't think there is an actual problem with my script as it runs without error when invoked from the command line. What I don't understand is why a script will work fine when invoked from the command prompt but not be run automatically on startup? I don't know if the script actually fails or if it is just never run. Is there a way to tell? Is there a log file I can look at to see what is happening when the script runs? If there isn't a log file, how can I create one? Thanks for all your help. The particular service I use can be found at http://www.dynip.com. I have installed their client and it is quite easy to use. Just type "dynipclient" to start or "dynipclient -k" to stop. And my script does this just fine when my pwd is /usr/local/etc/rc.d and invoked from the command line as "./dynip.sh start" or "./dynip.sh stop". Drew > > > -Wash > > -- > Odhiambo Washington Inter-Connect Ltd., > wash@iconnect.co.ke 5th Flr Furaha Plaza > Tel: 254 11 222604 Nkrumah Rd., > Fax: 254 11 222636 PO Box 83613 MOMBASA, KE. > > BASIC is the Computer Science equivalent of `Scientific Creationism'. > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message