From owner-freebsd-questions@FreeBSD.ORG Fri Dec 12 04:39:37 2003 Return-Path: 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 DC39716A4CF for ; Fri, 12 Dec 2003 04:39:37 -0800 (PST) Received: from be-well.no-ip.com (lowellg.ne.client2.attbi.com [66.30.200.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id CA74543D36 for ; Fri, 12 Dec 2003 04:39:36 -0800 (PST) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: by be-well.no-ip.com (Postfix, from userid 1147) id 2382374; Fri, 12 Dec 2003 07:39:36 -0500 (EST) Sender: lowell@be-well.ilk.org To: Andre Grove References: <20031211173501.G4978@asu.edu> <441xrah8wx.fsf@be-well.ilk.org> <3FD9A0E3.6050206@ananzi.co.za> From: Lowell Gilbert Date: 12 Dec 2003 07:39:35 -0500 In-Reply-To: <3FD9A0E3.6050206@ananzi.co.za> Message-ID: <44r7zaky60.fsf@be-well.ilk.org> Lines: 18 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: freebsd-questions@freebsd.org Subject: Re: startup scripts in /usr/local/etc/rc.d X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Dec 2003 12:39:38 -0000 Andre Grove writes: > Why would a script not run? I have a script in /usr/local/etc/rc.d, I > did chmod +x it, but it still does not run at startup. You didn't give much information there. Not feeling terribly psychic today, I'll just tell you what the manual says. o Scripts are only executed if their basename(1) matches the shell globbing pattern *.sh, and they are executable. Any other files or directories present within the directory are silently ignored. o When a script is executed at boot time, it is passed the string ``start'' as its first and only argument. At shutdown time, it is passed the string ``stop'' as its first and only argument. All rc.d scripts are expected to handle these arguments appropriately. If no action needs to be taken at a given time (either boot time or shut- down time) the script should exit successfully and without producing an error message.