Need help with rc.d script
krad
kraduk at gmail.com
Tue Nov 7 08:49:57 UTC 2017
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 at 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 at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-
> unsubscribe at freebsd.org"
>
More information about the freebsd-questions
mailing list