From owner-freebsd-questions@FreeBSD.ORG Sat Jan 3 13:41:00 2004 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 12E8816A4CE for ; Sat, 3 Jan 2004 13:41:00 -0800 (PST) Received: from cheyenne.wixb.com (cheyenne.wixb.com [65.43.82.170]) by mx1.FreeBSD.org (Postfix) with ESMTP id 544B743D1F for ; Sat, 3 Jan 2004 13:40:58 -0800 (PST) (envelope-from jeff_bronson@wixb.com) Received: from thinkpad.wixb.com (thinkpad.wixb.com [10.43.82.5]) i03KckQd000192; Sat, 3 Jan 2004 14:38:51 -0600 (CST) Message-Id: <6.0.1.1.2.20040103143744.00b4ad78@cheyenne.wixb.com> Date: Sat, 03 Jan 2004 14:38:35 -0600 To: Matthew Seaman From: "J.D. Bronson" In-Reply-To: <20040103203118.GA9278@happy-idiot-talk.infracaninophile.co .uk> References: <6.0.1.1.2.20040103123708.00b245e0@cheyenne.wixb.com> <20040103203118.GA9278@happy-idiot-talk.infracaninophile.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed cc: freebsd-questions@freebsd.org Subject: Re: starting apps in 5.2 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Jan 2004 21:41:00 -0000 At 02:31 PM 1/3/2004, Matthew Seaman wrote: >On Sat, Jan 03, 2004 at 12:38:33PM -0600, J.D. Bronson wrote: > > > I built these from scratch and wondering if anyone has a web page that > > shows the correct way to setup and use rc.conf and rc.d files? > >Well, there's the rc.conf(5) man page, and the /etc/defaults/rc.conf >file, which will show you all of the default settings. rc.conf is >pretty simple really -- it's just a list of shell variable assignments >which all of the other /etc/rc* scripts read and which controls their >behaviour. > >As for rc.d scripts for the programs you compiled, probably the best >thing to do is extract the startup scripts from the corresponding >ports. Note however that qpopper(8) is run out of inetd(8) -- you >need to add the following line to /etc/inetd.conf: > > pop3 stream tcp nowait root /usr/local/libexec/qpopper qpopper -s > >and then restart inetd: > > # kill -HUP `cat /var/run/inetd.pid` > >(if you're already running inetd, that is. If you aren't then a quick >perusal of the rc.conf stuff above will show you what to do.) > >While you can run samba out of inetd(8), most people will run it >standalone. In this case, simply copy the file >/usr/port/net/samba/files/samba.sh.sample to >/usr/local/etc/rc.d/samba.sh, make sure it's owned by root:wheel and >mode 750 or 755 and then just run it -- usually with rc.d files you >need to give the full path: > > # /usr/local/etc/rc.d/samba.sh start > >(No prizes for guessing that you can substitute 'stop' in that command >line to turn samba off again). This assumes that you've installed all >of the samba executables in appropriate places, created the >directories it needs to run and so forth. You may have to customize >the script if you've put things in odd places. > >If this all seems tedious and complicated -- you've only yourself to >blame. If you'ld just installed from ports, all this would either be >handled automatically for you, or you'ld get instructions as to what >to do next printed out. thanks ...I tossed what I needed in /usr/local/etc/rc.d and it works fine.. I dont use ports..I only compile from src code... Thanks again. -- J.D. Bronson Aurora Health Care // Information Services // Milwaukee, WI USA Office: 414.978.8282 // Fax: 414.328.8282 // Pager: 414.314.8282