From owner-freebsd-questions@FreeBSD.ORG Tue Jan 3 07:30:25 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 E542716A41F for ; Tue, 3 Jan 2006 07:30:25 +0000 (GMT) (envelope-from akbeech@gmail.com) Received: from msgmmp-2.gci.net (msgmmp-2.gci.net [209.165.130.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id C91E843D7D for ; Tue, 3 Jan 2006 07:30:16 +0000 (GMT) (envelope-from akbeech@gmail.com) Received: from stargate.akparadise.com ([209.124.141.64]) by msgmmp-2.gci.net (Sun Java System Messaging Server 6.2-3.03 (built Jun 27 2005)) with ESMTPA id <0ISI005ZQA6CWKI0@msgmmp-2.gci.net> for freebsd-questions@freebsd.org; Mon, 02 Jan 2006 22:30:16 -0900 (AKST) Received: by stargate.akparadise.com (Postfix, from userid 0) id 0AF213F9A; Mon, 02 Jan 2006 22:30:11 -0900 (AKST) Date: Mon, 02 Jan 2006 22:29:58 -0900 From: Beech Rintoul In-reply-to: To: freebsd-questions@freebsd.org Message-id: <200601022230.10387.akbeech@gmail.com> Organization: NorthWind Communications MIME-version: 1.0 Content-type: multipart/signed; boundary=nextPart4638830.U5bSh4LUAH; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-transfer-encoding: 7bit References: User-Agent: KMail/1.8.3 Cc: Mike Esquardez 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 07:30:26 -0000 --nextPart4638830.U5bSh4LUAH Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline On Monday 02 January 2006 10:14 pm, 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-star >ting-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 > You should run your script from cron. See man 5 crontab. Add the following to /etc/crontab @reboot root /path/to/your/script Beech --------------------------------------------------------------------------------------- Beech Rintoul - System Administrator - akbeech@gmail.com /"\ ASCII Ribbon Campaign | NorthWind Communications \ / - NO HTML/RTF in e-mail | 201 East 9th Avenue Ste.310 X - NO Word docs in e-mail | Anchorage, AK 99501 / \ - Please visit Alaska Paradise - http://akparadise.byethost33.com --------------------------------------------------------------------------------------- --nextPart4638830.U5bSh4LUAH Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBDuigCVq19LUoGB+MRAt9+AKCz9RT6osw0wWBD3GZtj3qWyDYFZwCgvMeR BYwm8OZOvI/E86PUXyVDnmg= =2eTA -----END PGP SIGNATURE----- --nextPart4638830.U5bSh4LUAH--