From owner-freebsd-questions Thu Oct 10 6:36:27 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C09A337B496 for ; Thu, 10 Oct 2002 06:36:22 -0700 (PDT) Received: from web40711.mail.yahoo.com (web40711.mail.yahoo.com [66.218.78.168]) by mx1.FreeBSD.org (Postfix) with SMTP id 80FBD43E9E for ; Thu, 10 Oct 2002 06:36:22 -0700 (PDT) (envelope-from robbakfreebsd@yahoo.co.uk) Message-ID: <20021010133617.11864.qmail@web40711.mail.yahoo.com> Received: from [203.221.120.172] by web40711.mail.yahoo.com via HTTP; Thu, 10 Oct 2002 06:36:17 PDT Date: Thu, 10 Oct 2002 06:36:17 -0700 (PDT) From: robert Backhaus Subject: Re: Directory structure for commercial products To: Serban Mihai , freebsd-questions@freebsd.org In-Reply-To: <3DA5704E.8000904@ravantivirus.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Heir(7) _is_ the official specification for filesystems. Save us all some headaches and follow it, --- Serban Mihai wrote: > Hi, > I'm looking for a standard/official specification for the filesystem > hierarchy used on FreeBSD (and all BSDs) regarding commercial > products. > > Conforming to hier(7) the PREFIX (/usr/local) location should be used > > for local packages. And there the /usr hierarchy should be used. > Let's suppose I have to install a commercial product named 'foo'. The > > package contains binaries, libraries, logs, UNIX sockets, temporary > files, configuration files and periodically updated data files. > Does the following directory structure conform to standards? > PREFIX/foo/{bin, lib, etc, tmp, log, data, run...} > > or should it be: > PREFIX/bin/foo > PREFIX/lib/foo > PREFIX/etc/foo > PREFIX/libdata/foo/{tmp, log, data, run..}? The latter may be preferrable, excepting - Sockets are better grouped with others in the /var filesystem, as many customise this for better performance You may consider logging in /var/log, where syslog can find and rotate the log files for you. Also for filesystem customisation. DEFINATELY put you pidfile in /var/run, which is cleaned out on startup. Not doing this can cause failures with `unscheduled reboots', as an exixting pidfile pointing to a running process can be construed as the process already running, causing "xyz is already running" errors. I think this the case with the default install of squid. most installs put their executables in /$PREFIX/bin/, sbin/, as oposed to /bin/foo/, so they will be found by the existing path. I hope I have got things right. I am equally sure that any errors will be rapidly flagged. ===== Robert Backhaus robbakfreebsd@yahoo.co.uk Unless otherwise indicated, All `F's in acronyms shal be deemed to stand for `Forgotten'! __________________________________________________ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos & More http://faith.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message