From owner-freebsd-questions Tue Jun 12 5:26:23 2001 Delivered-To: freebsd-questions@freebsd.org Received: from alligator.wananchi.com (alligator.wananchi.com [62.8.64.108]) by hub.freebsd.org (Postfix) with ESMTP id DD90237B401 for ; Tue, 12 Jun 2001 05:26:12 -0700 (PDT) (envelope-from drewt@writeme.com) Received: from root by alligator.wananchi.com with local (Exim 3.22 #1) id 159n9G-00012y-00; Tue, 12 Jun 2001 15:19:54 +0300 Received: from [209.198.248.2] (helo=siafu.iconnect.co.ke) by poeza.iconnect.co.ke with esmtp (Exim 3.20 #1) id 14W1EI-000FXJ-00 for wash@poeza.iconnect.co.ke; Thu, 22 Feb 2001 22:16:42 +0300 Received: from [212.22.161.3] (helo=ns2.iconnect.co.ke) by siafu.iconnect.co.ke with esmtp (Exim 2.12 #1) id 14W1B3-000Ipg-00 for wash@iconnect.co.ke; Thu, 22 Feb 2001 22:13:21 +0300 Received: from amavis by ns2.iconnect.co.ke with scanned-ok (Exim 3.12 #1) id 14W1Co-0005Oz-00 for wash@iconnect.co.ke; Thu, 22 Feb 2001 22:15:10 +0300 Received: from lcmail2.lc.ca.gov ([165.107.12.11]) by ns2.iconnect.co.ke with esmtp (Exim 3.12 #1) id 14W1Cl-0005Jn-00 for wash@iconnect.co.ke; Thu, 22 Feb 2001 22:15:08 +0300 Received: from CONVERSION-DAEMON by lcmail2.lc.ca.gov (PMDF V5.2-27 #40821) id <0G9600C01API03@lcmail2.lc.ca.gov> for wash@iconnect.co.ke; Thu, 22 Feb 2001 11:13:14 -0800 (PST) Received: from tagalong ([165.107.42.167]) by lcmail2.lc.ca.gov (PMDF V5.2-27 #40821) with SMTP id <0G96005ARAPE7O@lcmail2.lc.ca.gov> for wash@iconnect.co.ke; Thu, 22 Feb 2001 11:12:50 -0800 (PST) Date: Thu, 22 Feb 2001 11:12:46 -0800 From: Drew Tomlinson In-reply-to: <20010222204117.D57906@poeza.iconnect.co.ke> 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 Subject: RE: Newbie Help Diagnosing Startup Script Status: RO X-Status: A Lines: 56 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > -----Original Message----- > From: Odhiambo Washington [mailto:wash@iconnect.co.ke] > Sent: Thursday, February 22, 2001 9:41 AM > To: Drew Tomlinson > Cc: FBSD-Q > Subject: Re: Newbie Help Diagnosing Startup Script > > > * Drew Tomlinson [20010222 20:26]: > writing on the subject 'Newbie Help Diagnosing Startup Script' > Drew> I am trying to diagnose why a startup script doesn't seem to run > Drew> automatically during startup but seems to run fine when > invoked from the > Drew> command line. My script lives in /usr/local/etc/rc.d. > I have checked the > Drew> man pages and verified that /etc/defaults/rc.conf > contains this directory in > Drew> the local_startup line and there are no overrides in > /etc/rc.conf. My > Drew> script is called dynip.sh and it has the following > "permissions" (is this > Drew> the right term?). > Drew> > Drew> -rwxr-x--x 1 root wheel 111 Sep 13 04:51 apache.sh > Drew> -rwxr-xr-x 1 root wheel 233 Dec 20 11:36 dynip.sh > Drew> > Drew> I included the apache.sh line because this script > appears to work as apache > Drew> starts up automatically. This is the contents of my > dynip.sh script: > Drew> > Drew> 104 Blacksheep# cat dynip.sh > Drew> #!/bin/sh > Drew> > Drew> case "$1" in > Drew> start) > Drew> /usr/local/bin/dynipclient > Drew> echo -n ' dynipclient' > > I think you're missing something small, that should make the thing be > started in the background. > Where does it put its runtime pid??? It actually puts it in its own .conf file. The script works when I start it from the command prompt. It just doesn't appear to run on startup but I don't know how to confirm this. Is there some log file that I can read to see what's happening when the system starts up? If not, can I create one? How? Thanks for your help! Drew [snip] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message