From owner-freebsd-questions@freebsd.org Tue Nov 7 14:46:10 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 C853CE5AC9B for ; Tue, 7 Nov 2017 14:46:10 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: from mail-it0-x22d.google.com (mail-it0-x22d.google.com [IPv6:2607:f8b0:4001:c0b::22d]) (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 8C4AC6BF53 for ; Tue, 7 Nov 2017 14:46:10 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: by mail-it0-x22d.google.com with SMTP id p138so2690086itp.2 for ; Tue, 07 Nov 2017 06:46:10 -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=FYle0xrH5G1y9+P6UDDvuOZ7g0cEMQ7/zfoHNXCpK4A=; b=gZSiN9Hm+HYwm4gS4tPL6wWZs3ML6b1tequpHHAyDFhX0IO84g/6khUJnLLa0vp6mu islnrPIJBqaPe8mHQ70LcbtOd8si//04J+xEYU99D8dbyG3Z/T4jd131FnoM+ysDpSlp zcr56Z/qpQ/YsbmZDECDh3MVPQj4sADIOtCIjTntaixQsfEPWDsiR3IW0ZqBJDE0fEi5 5neyEdKCRXXVsD/wUyoPhN1SnTPC8JWNZjyL1URigwLsfyep142zOqHqKzvM0qUQMJOV wuWKAoLLdWvvMSmLVwDtls8HheEWm1wIX4xchud4pHiP/TRZGV0xJiNAhcOMc3ZofjMU SoEQ== 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=FYle0xrH5G1y9+P6UDDvuOZ7g0cEMQ7/zfoHNXCpK4A=; b=DIhyzLJ1H65pQqYyhoYIwVVcik4pwhNTFTHCzupEwl1G0tQVfwWPG1lPvpwTPiaPvZ Qcd5skh2vh1Fv6qF4gTtXx1fCRrn24J2DcxfbiZ4r/IwcazMGpDCKqIVolsP/e8g6pbT W6CprgkfnROESt0ulUccx6468qEEibRb7BNEhFdxqyyGFPHWV2ecKHGDtehIPxRVR2gh kqBYnBokscLS6P7coJRosCKFoczn5/MxbxTwm4rw04EZR/79pK9wtaD0EbX9EXIvX4sv WAwVAx7MP+Ka6fojNiBIwdqi+a+tzMge33M+vqrWYy8vRMj1Je5AQ0OtOlfn+mWBFeIq SAyQ== X-Gm-Message-State: AJaThX7iHR+T6HZlAX3B7fy2jjOy/BOt475RcOc6zimuFtaaLyX50B1E Nf8ojr9V7l/X0Y/9YEmEVEQ= X-Google-Smtp-Source: ABhQp+Tu8+nDynwfxrUXqdoE2Je/1QYsuWBpzqGiM/2r7pMxym9FhDYHbdCflHDHfsGaJa3dgHcGUQ== X-Received: by 10.36.34.206 with SMTP id o197mr2499866ito.51.1510065969981; Tue, 07 Nov 2017 06:46:09 -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 i63sm694365ioi.68.2017.11.07.06.46.08 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 07 Nov 2017 06:46:09 -0800 (PST) Message-ID: <5A01C731.4080309@gmail.com> Date: Tue, 07 Nov 2017 09:46:09 -0500 From: Ernie Luzar User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: krad 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=UTF-8; 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 14:46:10 -0000 Tried to use the daemon command in the rc.d script with no joy. this is in the rc.d script . /etc/rc.subr name=dynip rcvar=dynip_enable command="/usr/sbin/daemon /usr/local/bin/${name}" run_rc_command "$1" When I use the service command I get this /usr/local/etc/rc.d >service dynip onestart /usr/local/etc/rc.d/dynip: WARNING: no shebang line in /usr/sbin/daemon /usr/local/etc/rc.d/dynip: WARNING: run_rc_command: cannot run /usr/sbin/daemon /usr/local/bin/dynip When I run from the command line using this daemon /usr/local/bin/dynip ps ax shows it running and has a child task for sleep and it has disconnected itself from the terminal that issued the command. But it seems to be hung. Any other suggestions I can try.