Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!seismo!uunet!steinmetz!vdsvax!barnett From: barnett@vdsvax.UUCP Newsgroups: comp.unix.questions Subject: Re: Directory structure for local dir's Message-ID: <2432@vdsvax.steinmetz.UUCP> Date: Tue, 1-Sep-87 11:18:22 EDT Article-I.D.: vdsvax.2432 Posted: Tue Sep 1 11:18:22 1987 Date-Received: Thu, 3-Sep-87 01:45:28 EDT References: <311@pvab.UUCP> Reply-To: barnett@steinmetz.UUCP (Bruce G Barnett) Organization: General Electric CRD, Schenectady, NY Lines: 49 Keywords: directory, tree, structure In article <311@pvab.UUCP> robert@pvab.UUCP (Robert Claeson) writes: | |I'm a little curious about how I should organize our local |directories. Where should I put sources, binaries, libes, and so on. The method that works best for me is (assuming a large group of Suns & etc. ) is to create a directory /usr/$server/local, and create a symbolic link ln -s /usr/$server/local /usr/local I then create various directories (i.e. bin, etc, doc, src, man, include, lib, new, msgs ) inside this directory. I then create links that point to these directories. e.g. ln -s /usr/local/lib /usr/lib/local ln -s /usr/local/msgs /usr/msgs ln -s /usr/local/man /usr/man/manl ln -s /usr/local/etc /etc/local ln -s /usr/local/include /usr/include/local ln -s /usr/local/new /usr/new ln -s /usr/local/src /usr/src/local etc. In other words - all of the local stuff is in /usr/$server/local. All of the other directories point to the proper /usr/local subdirectory. This has several advantages: 1. Local additions are easier to retain on system updates. 2. All services provided by a file server that need files tend to have all of the files available, once the links are set up. This is especially true when you make the /usr/$server/local directory exported, but not /usr 3. Because /usr/local points to /usr/$server/local, you can change pointer to a new server when one server goes down. I usually make /usr/$server/local group `staff', so the support staff can add updates to the local directories ( with the exception of /usr/local/etc perhaps) Perhaps there should be several /usr/local/bin directories, once for each machine type, so you can include in the searchpath set path = ( $path /usr/local/`arch`bin /usr/local/bin) where the scripts go into /usr/local/bin, and the machine dependant binaries go into /usr/local//bin. Any comments? -- Bruce G. Barnett uunet!steinmetz!barnett