From owner-freebsd-questions@freebsd.org Tue Nov 7 08:49:57 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 3C0A1E52C05 for ; Tue, 7 Nov 2017 08:49:57 +0000 (UTC) (envelope-from kraduk@gmail.com) Received: from mail-qk0-x233.google.com (mail-qk0-x233.google.com [IPv6:2607:f8b0:400d:c09::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 E357D7026B for ; Tue, 7 Nov 2017 08:49:56 +0000 (UTC) (envelope-from kraduk@gmail.com) Received: by mail-qk0-x233.google.com with SMTP id a142so5501051qkb.5 for ; Tue, 07 Nov 2017 00:49:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=g2Rc3s0iLKi1nPN/41PDiEA54hE3ctffd6xbBsepB38=; b=FoXZI6Feeq6VQ1FvS2W8oeFJ45hev1bcd2dD4toyW5qhongOmP3+ehRDkVnPlMM6Xy 1Yj1QUjQ4SfWU4NjRAqldfo9gIExlooekt5WVXiUHHQusVTMEZUSt0bzB3ZtY3/ZzDzh Bj/A9dI1vQ9jGuc0Ic01McU0u6Xx8+FaN9c0uFdaLmxfpCEVtu+dDTQvkdM1AsNTpcC+ wcmRgGoilS1M6Fl/Or/nqZy5kDdXHOidXRNmWpoY5ImPKGmAocF7ZA5glvOzhCCCvFwI dVJbbiMJ7b4jyIsjK5UExsOwe8oMqboqTB2IYJqrxzdIt4X5G7AnywgL7kE8N5FxGuyb Riyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=g2Rc3s0iLKi1nPN/41PDiEA54hE3ctffd6xbBsepB38=; b=Vz2VMzAFKQ/llO5DPgH/sJ6f5Zz1KQovvE1vkBQrzVrOxUimi6PBhumScqb6iWSst9 sN8avRPE7UFfgk6GIgiPifOx7mLgVzxryAbxkvdhB/wKC62LLunKy04mgW1rU6g7i/DP MIK7XYbrON8VpvF/c0Z7giWy8gAizI17RT2cyGix2KhyjwNIIK+v8BTQorMnHrDgC46G zcQV461qSvjv1Z2LODplx0xh6hnqlj2BIGNub+cPzX3y2vkHiPD3NXebzgtm+WqKll/l wIlLSDqalnAlMhHmwyD1vWI8UGJ4O50mRGndDOtHxBILtDwLKUElfWB6h7mFWtxwQv60 eAYQ== X-Gm-Message-State: AJaThX4sY5cP683MM3QmWZWT781+FBr6IsWsDhEwWhcAvU5eYyzgC1P+ x3dN0V9txBMXq81rnZ+Fn3KFpzmgD2S6vYHAmBI= X-Google-Smtp-Source: AGs4zMazwA9CtV0/n37iCvwqLgLKGGHZD316bWZ6fEAgMJunjOK3mT9DoENeL5hSTFNitJugLiADzx3yzUn9YGv54fY= X-Received: by 10.233.235.13 with SMTP id b13mr2615725qkg.288.1510044596001; Tue, 07 Nov 2017 00:49:56 -0800 (PST) MIME-Version: 1.0 Received: by 10.140.20.65 with HTTP; Tue, 7 Nov 2017 00:49:55 -0800 (PST) In-Reply-To: References: <5A00F101.8040708@gmail.com> From: krad Date: Tue, 7 Nov 2017 08:49:55 +0000 Message-ID: Subject: Re: Need help with rc.d script To: Christian Kujau Cc: Ernie Luzar , "freebsd-questions@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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 08:49:57 -0000 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