From owner-freebsd-questions Thu Feb 3 16:35: 1 2000 Delivered-To: freebsd-questions@freebsd.org Received: from s1.ds.net (s1.ds.net [207.239.204.1]) by builder.freebsd.org (Postfix) with ESMTP id 260F64579 for ; Thu, 3 Feb 2000 16:34:59 -0800 (PST) Received: from ds.net (i1p94.cmh-oh.ds.net [207.239.205.94]) by s1.ds.net (8.8.5/8.8.5) with ESMTP id TAA23268; Thu, 3 Feb 2000 19:34:02 -0500 (EST) Message-ID: <389A1E86.FAE11709@ds.net> Date: Thu, 03 Feb 2000 19:34:14 -0500 From: "James A. Mutter" Reply-To: jmutter@ds.net X-Mailer: Mozilla 4.7 [en] (X11; U; Linux 2.0.36 i386) X-Accept-Language: en MIME-Version: 1.0 To: Ben Smithurst Cc: rl@overlypub.com, freebsd-questions@FreeBSD.ORG Subject: Re: file in use? References: <20000203224217.A3275@strontium.scientia.demon.co.uk> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > > Second question: How can I have this script run automatically at startup? > > If there is a problem, I want the script to quit, so I don't want to use > > cron. I tried an entry in rc.local but I don't think that is right either. > > Are there any other options besides these two? > > /etc/rc.local is one way (I prefer it), the other way is to add a .sh > shell script to /usr/local/etc/rc.d (rc.d is good for packages to use, > but for things I add manually, I prefer rc.local). In what way didn't it > work when you tried using rc.local, or are you saying it did work, but > you just didn't think it was the "right" way? If it works, use it. > Whether or not you use /etc/rc.local or /usr/local/etc/rc.d depends on when you want an application to fire, in some cases this could be important. It looks like those in /usr/local/etc/rc.d are executed before those in /etc/rc.local. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message