From owner-freebsd-questions@freebsd.org Sat Aug 22 09:58:25 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id EF3F83B4D39 for ; Sat, 22 Aug 2020 09:58:25 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4BYYjs5K5Hz4Q9Y for ; Sat, 22 Aug 2020 09:58:25 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: by mailman.nyi.freebsd.org (Postfix) id B67D43B4D38; Sat, 22 Aug 2020 09:58:25 +0000 (UTC) Delivered-To: questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B64663B4DA9 for ; Sat, 22 Aug 2020 09:58:25 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: from mail-ot1-x32c.google.com (mail-ot1-x32c.google.com [IPv6:2607:f8b0:4864:20::32c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BYYjr7092z4PxZ for ; Sat, 22 Aug 2020 09:58:24 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: by mail-ot1-x32c.google.com with SMTP id q9so3522731oth.5 for ; Sat, 22 Aug 2020 02:58:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=KISlL0wQu3M+Hh23L99KRwzNhHgBJZIiv9XwxXsq8tg=; b=NUAkupWbJNUB1P2Vy7C1q/k6Sn6xvzeG4G1z0zOblN+R324TdiOB16kVUvQDfksbnk f+4HFqnRTsspB9NZZoozsqjQ5deXCtMDrolnAbIHlTwYncbOje/1nVTgbsvdMEREPxIJ Jl5llEe2x8KE0W4BEsdShHPuDbpbOkavf3aNIoGFYJAT9i15/B6Q0vJfKlDuo/+bIlit OepjogECdh7MXit+jHhpR6M1TzLhUi6scxuOSfg9nXu19y58P1jOqN7dRHQmgL8XzvSN Eixk5KnW9wFNeBUkoNUQXTFEiBMLKwBgHFIl+V5/8swvBGobWIu+F4Z21aDHtc7Syr7+ KoXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=KISlL0wQu3M+Hh23L99KRwzNhHgBJZIiv9XwxXsq8tg=; b=qV6X9nJ1uGOrdLsM61zoBdESMDRwV7xddOeHM35rd2mES872uesxwpZGOLFziFJoRo FZ3omC1Icz/x3FaDjf/BHQ43cSC7GaUxpuIeAaEM70qJGn2PpxzzZ+ESc7GmFWrSqpkF gcLVv6yniRd7gc2iDSEqR4+t2HmS9S0/DXESdLQB1ag+QY1U02i0pPcqzEUkj3RlnFJj DMZ5krBsrnPEBpPhL2/p56kRtxiyumpcDncDQwLn+9gLi1G0vBd5cVy6oDS0ueuiPP+L 4bK5oMynFwS4iSsJXZx13yHK44UDJP/5fx0OerWSwihoCU0oKXWf6v6pJf8Aq6DMNwjl 8uCg== X-Gm-Message-State: AOAM533qTpbXxM/8a1ghokPiX1druIzzMjfy2svTQg8sPRFTE4Q9k+Z+ n7Q8qh2fK1NsYjydfRruoVxBPvZk8q9xU4slJtabzTSqef8= X-Google-Smtp-Source: ABdhPJwlEAbMtdwJ55qpFmfIzBU8LydM+qASG3XzfkfuEAdQWGgBNj8LY1ad2EfwSwol3CePI/DUqRSzaZcSvRgtxOQ= X-Received: by 2002:a05:6830:1286:: with SMTP id z6mr4585967otp.240.1598090303310; Sat, 22 Aug 2020 02:58:23 -0700 (PDT) MIME-Version: 1.0 References: <20200822103158.f6cdadc7.freebsd@edvax.de> In-Reply-To: <20200822103158.f6cdadc7.freebsd@edvax.de> From: Odhiambo Washington Date: Sat, 22 Aug 2020 12:57:47 +0300 Message-ID: Subject: Re: creating a startup script for a foreign application To: Polytropon Cc: questions X-Rspamd-Queue-Id: 4BYYjr7092z4PxZ X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=NUAkupWb; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of odhiambo@gmail.com designates 2607:f8b0:4864:20::32c as permitted sender) smtp.mailfrom=odhiambo@gmail.com X-Spamd-Result: default: False [-1.06 / 15.00]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::32c:from]; NEURAL_HAM_SHORT(-0.06)[-0.059]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[questions]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Aug 2020 09:58:26 -0000 On Sat, 22 Aug 2020 at 11:31, Polytropon wrote: > Allow me an addition: > > You can find information about how to convert or construct > a rc.d script in The Porter's Handbook: > > 6.26. Starting and Stopping Services (rc Scripts) > > > https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/rc-scripts.html > > But as you already have a script that works, it would > probably be easier to just create an "interface" to that > script. There is a section in the article "Practical rc.d > scripting in BSD" which might be helpful (and the article > itself is worth reading): > > > https://www.freebsd.org/doc/en_US.ISO8859-1/articles/rc-scripting/index.html > > Especially this section: > > 7. Connecting a script to the rc.d framework > > > https://www.freebsd.org/doc/en_US.ISO8859-1/articles/rc-scripting/rcng-hookup.html > > I'm quite sure this is the easiest way to integrate the existing and > working script with the requirements of rc.d. > Thank you. Let me take a look at this. -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", grep ^[^#] :-)