Date: Tue, 7 Nov 2017 08:49:55 +0000 From: krad <kraduk@gmail.com> To: Christian Kujau <lists@nerdbynature.de> Cc: Ernie Luzar <luzar722@gmail.com>, "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org> Subject: Re: Need help with rc.d script Message-ID: <CALfReyeWAFA-mUcjPjmKoDkVkG=p1S1%2Br7aCZmoucwPjoG2E0A@mail.gmail.com> In-Reply-To: <alpine.DEB.2.21.9.1711062326320.31397@trent.utfs.org> References: <5A00F101.8040708@gmail.com> <alpine.DEB.2.21.9.1711062326320.31397@trent.utfs.org>
next in thread | previous in thread | raw e-mail | index | archive | help
By the looks of it the while loop with never exit unless the wget fails, therefore the rc script calling the script will never exit. If this is intended have a look at calling the the script via the daemon command as that will handle back grounding it. its quicker to invoke with the following, then you dont have to edit the script sh -x <script> On 7 November 2017 at 07:31, Christian Kujau <lists@nerdbynature.de> wrote: > On Mon, 6 Nov 2017, Ernie Luzar wrote: > > I wrote this sh script today for dynamic dns ip updates. > > Why not use 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/ > > > 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 > > C. > -- > BOFH excuse #273: > > The cord jumped over and hit the power switch. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions- > unsubscribe@freebsd.org" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALfReyeWAFA-mUcjPjmKoDkVkG=p1S1%2Br7aCZmoucwPjoG2E0A>