standard locations for port files

Mathieu Arnold mat at FreeBSD.org
Thu Aug 31 16:05:32 UTC 2017


Le 31/08/2017 à 17:25, Ernie Luzar a écrit :
> Adam Weinberger wrote:
>>> On 31 Aug, 2017, at 9:07, Ernie Luzar <luzar722 at gmail.com> 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.


-- 
Mathieu Arnold


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20170831/34024309/attachment.sig>


More information about the freebsd-ports mailing list