From owner-freebsd-questions Tue Feb 27 15:42:13 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 E254337B71E for ; Tue, 27 Feb 2001 15:42:10 -0800 (PST) (envelope-from drewt@writeme.com) Received: from CONVERSION-DAEMON by lcmail2.lc.ca.gov (PMDF V5.2-27 #40821) id <0G9F00F01W646P@lcmail2.lc.ca.gov> for freebsd-questions@FreeBSD.org; Tue, 27 Feb 2001 15:35:16 -0800 (PST) Received: from tagalong ([165.107.42.167]) by lcmail2.lc.ca.gov (PMDF V5.2-27 #40821) with SMTP id <0G9F00LHIW1M3K@lcmail2.lc.ca.gov> for freebsd-questions@FreeBSD.org; Tue, 27 Feb 2001 15:32:10 -0800 (PST) Date: Tue, 27 Feb 2001 15:32:06 -0800 From: Drew Tomlinson Subject: Startup Script To: "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.2911.0) Content-type: text/plain; charset="iso-8859-1" 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 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