From owner-freebsd-questions@freebsd.org Thu Aug 31 16:05:31 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 EA3C0E0111D; Thu, 31 Aug 2017 16:05:31 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from prod2.absolight.net (prod2.absolight.net [79.143.243.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "plouf.absolight.net", Issuer "CAcert Class 3 Root" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 9AC7382678; Thu, 31 Aug 2017 16:05:31 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from prod2.absolight.net (localhost [127.0.0.1]) by prod2.absolight.net (Postfix) with ESMTP id 002E3BDD2F; Thu, 31 Aug 2017 18:05:28 +0200 (CEST) Received: from ogg.in.absolight.net (ogg.in.absolight.net [79.143.241.239]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by prod2.absolight.net (Postfix) with ESMTPSA id D4568BDD2D; Thu, 31 Aug 2017 18:05:27 +0200 (CEST) Subject: Re: standard locations for port files To: Ernie Luzar , Adam Weinberger Cc: "freebsd-questions@freebsd.org" , "freebsd-ports@freebsd.org" References: <59A82622.4030502@gmail.com> <729F1CC6-9A65-4CDF-B7E5-FB520779FD15@adamw.org> <59A82A64.4050507@gmail.com> From: Mathieu Arnold Organization: Absolight / The FreeBSD Foundation Message-ID: Date: Thu, 31 Aug 2017 18:05:25 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <59A82A64.4050507@gmail.com> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="rRh1jTFuQJEtukbhn7K9lD14qsmmLmDHF" 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: Thu, 31 Aug 2017 16:05:32 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --rRh1jTFuQJEtukbhn7K9lD14qsmmLmDHF Content-Type: multipart/mixed; boundary="3eEShrigsC23DIN2JSuQ5UOePcFakxweQ"; protected-headers="v1" From: Mathieu Arnold To: Ernie Luzar , Adam Weinberger Cc: "freebsd-questions@freebsd.org" , "freebsd-ports@freebsd.org" Message-ID: Subject: Re: standard locations for port files References: <59A82622.4030502@gmail.com> <729F1CC6-9A65-4CDF-B7E5-FB520779FD15@adamw.org> <59A82A64.4050507@gmail.com> In-Reply-To: <59A82A64.4050507@gmail.com> --3eEShrigsC23DIN2JSuQ5UOePcFakxweQ Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Language: fr Le 31/08/2017 =C3=A0 17:25, Ernie Luzar a =C3=A9crit=C2=A0: > Adam Weinberger wrote: >>> On 31 Aug, 2017, at 9:07, Ernie Luzar wrote: >>> >>> Lets say I have a product that I want to port to Freebsd. >>> >>> Were is the standard location for the log file and PID file. >>> >>> Would it be in >>> /usr/local/etc/product/product.log >>> /usr/local/etc/product/product.pid >>> >>> or >>> >>> /var/log/product.log >>> /var/run/product.pid >> >> It should be in /var. Many users keep /usr/local mounted read-only. >> >> # Adam >> >> > Lets say /usr/local/etc/product/ is chrooted and the only thing in it > is the product.conf. Is there any security benefit for chrooting that > directory path? > The etc directory is for configuration files and scripts, that is, files that almost never changes. Do *not* put pid or log files in there. --=20 Mathieu Arnold --3eEShrigsC23DIN2JSuQ5UOePcFakxweQ-- --rRh1jTFuQJEtukbhn7K9lD14qsmmLmDHF Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQJ8BAEBCgBmBQJZqDPHXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQzQUI2OTc4OUQyRUQxMjEwNjQ0MEJBNUIz QTQ1MTZGMzUxODNDRTQ4AAoJEDpFFvNRg85IJAUQAIb9Ns69r7FBiq2GTSZ1aOdz NBLLg2JfDiNFvaX+DIx/wa7fDziX9JHK+Ex6MZkIM4Nj0LynIYm7mMZwqDR+RVQ3 D8DGWrjv0nX+kqN5sLotNQti9iGjYD6O+hXj6Be+qQeQmieIlz51ZPRs5y7SnG5A jvzHiNVOJFHa/U7Md5iWBTwSOhZ04y0HnYFX03F0h1ibPdFcWJLLoXkB/uvju26P mEJpWaWOnErzOZdW37++Y/v4WWc0/KpZcVlIfGvfbeR31Oeo5VsTRk7dkepemhfq lVDmhJJVxgHhBfNs9BciZrDmg7XzsXA6KXbb6uUtvOFKiy2Aakne0zaJ0b3BY2S9 WDj2K0cAlfWiTS84GpcgnFEUNdPEbvPWvY4EXpW9HAdx7W1aN+loVq2HgCWCDF39 EVoL68cGueN6IkVY3ezqzScTn9OLQ/6Oc71KVSlaVJcAZzZEO7rhsSQdWyhbkEGx xzdt/no/0zf9aTMJIixqFYl7Oj2ueae3osk7IhqYCOA0DBkeObx4o+EDIA6lPlAz oNBEYyTSck1ZHl9dQ/m5bwo5fyAhe9PCbrcOAEDmWoq3K1HSAR5XQbacVlkwgGmU icOvE3UNFWeFwTSkpMJjleG+wOJu2IoX2GhUlReaGlPnribRpmiZxub5D1l2ksqO tqlp1ysSH4ZAIAG4U3BL =H3NL -----END PGP SIGNATURE----- --rRh1jTFuQJEtukbhn7K9lD14qsmmLmDHF--