From owner-freebsd-questions@FreeBSD.ORG Sat Jan 3 12:33:11 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 BA9D416A4CE for ; Sat, 3 Jan 2004 12:33:11 -0800 (PST) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 597C943D58 for ; Sat, 3 Jan 2004 12:31:23 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [127.0.0.1]) i03KVIxn009487 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 3 Jan 2004 20:31:18 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i03KVIha009486; Sat, 3 Jan 2004 20:31:18 GMT (envelope-from matthew) Date: Sat, 3 Jan 2004 20:31:18 +0000 From: Matthew Seaman To: "J.D. Bronson" Message-ID: <20040103203118.GA9278@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , "J.D. Bronson" , freebsd-questions@freebsd.org References: <6.0.1.1.2.20040103123708.00b245e0@cheyenne.wixb.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="DocE+STaALJfprDB" Content-Disposition: inline In-Reply-To: <6.0.1.1.2.20040103123708.00b245e0@cheyenne.wixb.com> User-Agent: Mutt/1.5.5.1i X-Spam-Status: No, hits=-4.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.61 X-Spam-Checker-Version: SpamAssassin 2.61 (1.212.2.1-2003-12-09-exp) on happy-idiot-talk.infracaninophile.co.uk 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 20:33:11 -0000 --DocE+STaALJfprDB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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=20 > 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. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --DocE+STaALJfprDB Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQE/9yaWdtESqEQa7a0RAq8UAJ9turshREc04tQ/MiIvfQVqXbUErwCffg1w laCuoHtwkxCp0TycpT4w7ME= =1rgB -----END PGP SIGNATURE----- --DocE+STaALJfprDB--