From owner-freebsd-questions Wed Jan 29 23:50: 8 2003 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 C207537B401 for ; Wed, 29 Jan 2003 23:50:07 -0800 (PST) Received: from stjohn.stjohn.ac.th (stjohn.stjohn.ac.th [202.21.144.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4AE8843F43 for ; Wed, 29 Jan 2003 23:49:59 -0800 (PST) (envelope-from mcrogerm@stjohn.ac.th) Received: from tulip.stjohn.ac.th ([203.151.134.104]) by stjohn.stjohn.ac.th (8.9.3+Sun/8.9.3) with ESMTP id OAA05460 for ; Thu, 30 Jan 2003 14:44:54 +0700 (ICT) Message-Id: <5.2.0.9.0.20030130143905.00a0aaa0@127.0.0.1> X-Sender: stjohn.stjohn.ac.th:mcrogerm@127.0.0.1 X-Mailer: QUALCOMM Windows Eudora Version 5.2.0.9 Date: Thu, 30 Jan 2003 14:49:07 +0700 To: freebsd-questions@FreeBSD.ORG From: Roger Merritt Subject: Modifying /etc/rc? Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed 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 My earlier question about starting up vncserver has been answered with a couple of possible methods, and in the course of looking at them I found that during boot-up the PATH variable is set by the /etc/rc script. Now, it seems to me that modifying the vncserver script is not elegant. I don't think it's a good idea for me to make *any* modifications to something that somebody else wrote, even when the code is as clear and easy to understand as in this case. Besides, what if I upgrade and forget to check if that file has changed? I could change the PATH variable to add /usr/X11R6/bin in my rc.d script. This sounds like a better idea to me. How about making a change to /etc/rc? Is this a Bad Idea (tm)? I'm sure there's a reason /usr/X11R6/bin isn't in the path set in that script. So far I haven't made an /etc/rc.local and I don't want to. The obvious argument against modifying /etc/rc is that it will add another merging operation to mergemaster whenever I upgrade. Is this kind of modification suitable for putting in /etc/rc.conf? -- Roger To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message