Date: Thu, 22 Feb 2001 09:20:27 -0800 From: Drew Tomlinson <drewt@writeme.com> To: "FreeBSD Questions (E-mail)" <freebsd-questions@FreeBSD.org> Subject: Newbie Help Diagnosing Startup Script Message-ID: <BA5D0CE1CBB2D411B6AA00A0CC3F02390AF864@ldcmsx01.lc.ca.gov>
next in thread | raw e-mail | index | archive | help
I am trying to diagnose why a startup script doesn't seem to run
automatically during startup but seems to run fine when invoked from the
command line. My script lives in /usr/local/etc/rc.d. I have checked the
man pages and verified that /etc/defaults/rc.conf contains this directory in
the local_startup line and there are no overrides in /etc/rc.conf. My
script is called dynip.sh and it has the following "permissions" (is this
the right term?).
-rwxr-x--x 1 root wheel 111 Sep 13 04:51 apache.sh
-rwxr-xr-x 1 root wheel 233 Dec 20 11:36 dynip.sh
I included the apache.sh line because this script appears to work as apache
starts up automatically. This is the contents of my dynip.sh script:
104 Blacksheep# cat dynip.sh
#!/bin/sh
case "$1" in
start)
/usr/local/bin/dynipclient
echo -n ' dynipclient'
;;
stop)
/usr/local/bin/dynipclient -k
;;
*)
echo "Usage: `basename $0` {start|stop}" >&2
;;
esac
exit 0
This script was written with the help of others on FBSD-Questions. I don't
have much of a clue about writing scripts but plan to learn soon. Anyway,
the attempt here is to run a client program that registers my dynamic IP
address with a DNS service I subscribe to. When I invoke the script
manually, it appears to run fine.
125 Blacksheep# ./dynip.sh start
dynipclientdynipclient[1483]: Using client configuration file
'/etc/dynip.cfg'
126 Blacksheep# Feb 20 08:41:20 blacksheep dynipclient[1483]: Using client
confi
guration file '/etc/dynip.cfg'
Feb 20 08:41:20 blacksheep dynipclient[1483]: Using client configuration
file '/
etc/dynip.cfg'
Feb 20 08:41:20 blacksheep dynipclient[1484]: active
Feb 20 08:41:20 blacksheep dynipclient[1484]: active
Any help diagnosing this problem would be greatly appreciated. If there is
other information I can include to help figure this out, please let me know.
I don't know if there are log files that would show this executing or not.
If there are, please nudge me in the right direction. If there's not, how
can I create them?
Thanks for your help!
Drew
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?BA5D0CE1CBB2D411B6AA00A0CC3F02390AF864>
