From owner-freebsd-questions@freebsd.org Tue Nov 7 13:38:58 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6DF1AE58E35 for ; Tue, 7 Nov 2017 13:38:58 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: from mail-it0-x233.google.com (mail-it0-x233.google.com [IPv6:2607:f8b0:4001:c0b::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2885D6635C for ; Tue, 7 Nov 2017 13:38:58 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: by mail-it0-x233.google.com with SMTP id j140so2299395itj.1 for ; Tue, 07 Nov 2017 05:38:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-transfer-encoding; bh=7RPBtZdJWCXhX133Z998gzHUPm+lLSC70eRBWLfmSsM=; b=UFL+CWVvMJa7mWwfpGSFrN/Is0jG9qK8KaiFeNpF2YLlZuowsZYz7e4wKmpXITOLU+ Dc6b5NEKmseCE2XXnSvPREINtGhK/WbYJLUtfdpJPEwemGnrHDNeNK7G96bDCJZEHANs +EapXSfUjhjdf4Nvfa1x56k0+iubuQ1PXEz2v+ObRL/qP7jBTdGCk3YBMN9AeGv+gnn8 qkGPZwNZzM0eonp5I8k8vV3rrS6/L/vhYCcqhxQpgJB3D8oEbfB/EbEs5BUiSolFd5pl JUF+mTPrsyoVc6smN1vs0YVFcvRc7hWF8jIPSXWA6rfILVu5fd7KR0/SV0AB+ymFXuCZ N7mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-transfer-encoding; bh=7RPBtZdJWCXhX133Z998gzHUPm+lLSC70eRBWLfmSsM=; b=I9QjzlgjKlC8rB7S00n7dgxeIRljR9Nd7eCutuAV9vgE3o72m2hFoz9Iz/YLhazj6T GtaisOR8vrWt54LUMrknyuVnGgmkEgNp1ATVaey6DkRB1vh+JD5U/FCk37JChGJC5yik h0OOg9gmY92Aq/gslmK43nTAfdYjhEW5mplhCimbJSVjXzRH7tWqlQRA/EnUUS9oWsxQ tSB7lBnevks9cP5BNC6svD6senOm9Xzu6Rqvb4/FqS7eh5+H/wXzzTCIAOfTgG4sh2p+ X8bg/CmWB2E2n0Up2bRMdwb5G3tahWvVfDomQCMWRdS78jGIffBmJsUylJlB1rOhiurJ Ru7Q== X-Gm-Message-State: AJaThX6FK/SwyBmMfkqsBT4nECb4bcbaNpAszuQozeMVspu2nbBJLvZn yibWEetREFMJF1aFDFQBSit1Pw== X-Google-Smtp-Source: ABhQp+T9n3t/9XP5fYDOV6oo4iXbVWIGMpPmsB0nonz0tSeKY6wTFWc54BpwhrRCbnup0O5Cb4cxNg== X-Received: by 10.36.213.213 with SMTP id a204mr2100518itg.51.1510061937422; Tue, 07 Nov 2017 05:38:57 -0800 (PST) Received: from [10.0.10.7] (cpe-65-25-50-122.neo.res.rr.com. [65.25.50.122]) by smtp.googlemail.com with ESMTPSA id j71sm6537269itj.2.2017.11.07.05.38.56 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 07 Nov 2017 05:38:56 -0800 (PST) Message-ID: <5A01B770.4040107@gmail.com> Date: Tue, 07 Nov 2017 08:38:56 -0500 From: Ernie Luzar User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: Christian Kujau CC: "freebsd-questions@freebsd.org" Subject: Re: Need help with rc.d script References: <5A00F101.8040708@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Nov 2017 13:38:58 -0000 Christian Kujau wrote: > On Mon, 6 Nov 2017, Ernie Luzar wrote: >> I wrote this sh script today for dynamic dns ip updates. > > Why not use one of the many scripts that already exist do do that? Since you're > using namecheap: > > | Are there any alternate Dynamic DNS clients? > | https://www.namecheap.com/support/knowledgebase/article.aspx/5/11/ > I have been using ddclient and it has problem that causes a watchdog timeout followed by the NIC being reset with down/up many times a hour. All those other dynamic DNS ports are way over complicated for such a simple task. I wrote this KISS script so I can have complete control of this very simple process. >> When I use service dynip start command it just hangs there. > > Try running it with "set -x" to see where it hangs. > > | https://en.wikibooks.org/wiki/Bourne_Shell_Scripting/Debugging_and_signal_handling > Entering set -x [script name] on the command line is really a trace of the commands in the script as they execute. This is no help as already know the endless loop is what is keeping it connected to the terminal that issued the execute command. Was hoping the rc.d service script would break that and is reason I was asking for help with that script as the subject states. Thanks anyhow for taking time to answer.