Date: Thu, 22 Feb 2001 11:12:46 -0800 From: Drew Tomlinson <drewt@writeme.com> To: 'Odhiambo Washington' <wash@iconnect.co.ke> Cc: "FreeBSD Questions (E-mail)" <freebsd-questions@FreeBSD.org> Subject: RE: Newbie Help Diagnosing Startup Script Message-ID: <BA5D0CE1CBB2D411B6AA00A0CC3F02390AF866@ldcmsx01.lc.ca.gov> In-Reply-To: <20010222204117.D57906@poeza.iconnect.co.ke>
next in thread | previous in thread | raw e-mail | index | archive | help
> -----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 <drewt@writeme.com> [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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BA5D0CE1CBB2D411B6AA00A0CC3F02390AF866>