Date: Tue, 27 Feb 2001 15:32:06 -0800 From: Drew Tomlinson <drewt@writeme.com> To: "FreeBSD Questions (E-mail)" <freebsd-questions@FreeBSD.org> Subject: Startup Script Message-ID: <BA5D0CE1CBB2D411B6AA00A0CC3F02390AF882@ldcmsx01.lc.ca.gov>
next in thread | raw e-mail | index | archive | help
I have created a script (with a lot of help from this list) to start my dynamic DNS client (dynipclient). The service I use is www.dynip.com. Here is my script: 103 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 The file is set as executable and the script runs fine when I initialize it from /usr/local/etc/rc.d as ./dynip.sh and pass either the "start" or "stop" argument. However, after a reboot, the dynip client is not successfully started. As I watch the system boot, I see the following messages: Local package initialization: apachedynipclient[194]: Using client configuration file '/etc/dynip.cfg' Feb 27 15:16:47 blacksheep dynipclient[194]: Using client configuration file '/etc/dynip.cfg' dynipclientFeb 27 15:16:47 blacksheep dynipclient[195]: active Doesn't this mean that the dynipclient program was started as process ID 195? But when I logon the system, the process is not there. What is causing this behavior and how can I fix it? 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? 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?BA5D0CE1CBB2D411B6AA00A0CC3F02390AF882>