From owner-freebsd-questions Sun Apr 7 23:33: 0 2002 Delivered-To: freebsd-questions@freebsd.org Received: from snipe.prod.itd.earthlink.net (snipe.mail.pas.earthlink.net [207.217.120.62]) by hub.freebsd.org (Postfix) with ESMTP id 3FB1F37B41A for ; Sun, 7 Apr 2002 23:32:53 -0700 (PDT) Received: from user-11206e7.dsl.mindspring.com ([66.32.25.199] helo=localhost.localdomain) by snipe.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16uShw-0000JH-00 for freebsd-questions@FreeBSD.ORG; Sun, 07 Apr 2002 23:32:53 -0700 Subject: Re: adding a service at start up From: Unix Newbie To: freebsd-questions@FreeBSD.ORG In-Reply-To: <200204071508.46778@.perimeter.co.za> References: <1017952363.8817.36.camel@debian> <1ZT5VFBj31r8Ewn9@caomhin.demon.co.uk> <200204071508.46778@.perimeter.co.za> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 05 Apr 2002 22:33:38 -0800 Message-Id: <1018074829.9076.2.camel@debian> Mime-Version: 1.0 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 Ok, thanks for the info, I read the page, and I wrote a script that I believe will suit my purposes, but I don't know how to test that. (you know, debug it, if you will). Also, I have no directory or file named rc.d so I just made a file named rc.d and put the script into it. Should rc.d be a directory with scripts in it? Does FreeBSD already know to use this directory at start up when I create it? Sorry for the basic questions, but after reading the man pages, and the urls (thanks bye the way!) I am still a little confused. Thanks for all the help! Terry. On Sun, 2002-04-07 at 06:14, Patrick O'Reilly wrote: > On Sat 06 Apr 02 22:43, Kevin Golding wrote: > > In message <1017952363.8817.36.camel@debian>, Unix Newbie > > writes > > > > > I have been looking around on the net a bit and I cannot quite > > > seem to find out how to add a service/dameon to run at start up. > > > > > > Thanks so much! Docs, urls, I'd like pretty much anything. > > > > You'd want a startup script in /usr/local/etc/rc.d > > > > http://www.freebsd.org/handbook/configtuning-starting-services.html > > > > covers it far better than I could. > > > > The script in /usr/local/etc/rc.d should be named script.sh, where the > script part is whatever you please, but it must end with .sh. And it > must be executable. > > Patrick. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message