From owner-freebsd-questions@FreeBSD.ORG Tue Jan 3 19:33:58 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 858E216A41F for ; Tue, 3 Jan 2006 19:33:58 +0000 (GMT) (envelope-from derek@computinginnovations.com) Received: from betty.computinginnovations.com (dsl081-142-072.chi1.dsl.speakeasy.net [64.81.142.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id D39BD43D7F for ; Tue, 3 Jan 2006 19:33:55 +0000 (GMT) (envelope-from derek@computinginnovations.com) Received: from p17.computinginnovations.com (dhcp-10-20-30-100.computinginnovations.com [10.20.30.100]) (authenticated bits=0) by betty.computinginnovations.com (8.13.5/8.12.11) with ESMTP id k03JXfbI083494; Tue, 3 Jan 2006 13:33:41 -0600 (CST) Message-Id: <6.0.0.22.2.20060103133217.0279b5b8@mail.computinginnovations.com> X-Sender: derek@mail.computinginnovations.com X-Mailer: QUALCOMM Windows Eudora Version 6.0.0.22 Date: Tue, 03 Jan 2006 13:33:34 -0600 To: "Mike Esquardez" , freebsd-questions@freebsd.org From: Derek Ragona In-Reply-To: References: Mime-Version: 1.0 X-ComputingInnovations-MailScanner-Information: Please contact the ISP for more information X-ComputingInnovations-MailScanner: Found to be clean X-MailScanner-From: derek@computinginnovations.com Content-Type: text/plain; charset="us-ascii"; format=flowed X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: startup script not working X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Jan 2006 19:33:58 -0000 Make sure your script is named with the extension .sh Also, don't assume your script has a proper environment. You will do best to use full path names to any commands. -Derek At 01:14 AM 1/3/2006, Mike Esquardez wrote: >Hello. I have been reading the docs but i can see what i'm doing >wrong. I also was to read this >http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/configtuning-starting-services.html >but I am not running a service, just some command that need to be run on >start up. > >I have a shell script that works when i run it as root. I have moved it to >/usr/local/etc/rc.d and chmod +x but it is not running when the pc starts. >Is moving file to usr/local/etc/rc.d/ and chmod +x all i have to do? > >Any ideas would be great. many thanks to you. >Mik > >_________________________________________________________________ >Express yourself instantly with MSN Messenger! Download today it's FREE! >http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ > >_______________________________________________ >freebsd-questions@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"