From owner-freebsd-questions@FreeBSD.ORG Mon Jun 25 16:25:45 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BF06516A46E for ; Mon, 25 Jun 2007 16:25:45 +0000 (UTC) (envelope-from kdk@daleco.biz) Received: from ezekiel.daleco.biz (southernuniform.com [66.76.92.18]) by mx1.freebsd.org (Postfix) with ESMTP id 8279413C4BC for ; Mon, 25 Jun 2007 16:25:45 +0000 (UTC) (envelope-from kdk@daleco.biz) Received: from archangel.daleco.biz (dsl.daleco.biz [209.125.108.70]) by ezekiel.daleco.biz (8.13.8/8.13.1) with ESMTP id l5PGPfFY019400; Mon, 25 Jun 2007 11:25:42 -0500 (CDT) (envelope-from kdk@daleco.biz) Message-ID: <467FEC7F.4020800@daleco.biz> Date: Mon, 25 Jun 2007 11:25:35 -0500 From: Kevin Kinsey User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.2) Gecko/20070418 SeaMonkey/1.1.1 MIME-Version: 1.0 To: sgmayo@mail.bloomfield.k12.mo.us References: <467FDCC6.5090404@mail.bloomfield.k12.mo.us> In-Reply-To: <467FDCC6.5090404@mail.bloomfield.k12.mo.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Starting Scripts 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: Mon, 25 Jun 2007 16:25:45 -0000 Scott Mayo wrote: Hello from SW Missouri! > I have set some things to automatically start in the rc.conf like ssh > and apache by doing 'sshd_enable="YES"' and 'apache22_enable="YES"'. How > do I start things like Zope and Cyrus? > > From the command line I can just: > > '/usr/local/cyrus/bin master &' for cyrus > > '/data/home/testuser/zope28/bin/zopectl start' for my instance of zope. And, you could add these to your crontab ('crontab -e') or root's with the special string "@reboot" pre-pended, and it would work. But, that's not "by the book", just an illustration of how the 'Nix philosophy "tools, not policy" still applies. > I use to add lines like this to the rc.local file in linux to get them > started. I was thinking that I read that this could still be done in > FreeBSD, but was not the preferred way to do it. > > From looking at the scripts in '/usr/local/etc/rc.d', it looks like > there are different ways. For zope it says that I can define > 'zope28_enable : "YES"' in '/etc/rc.conf', '/etc/rc.conf.local' or > '/etc/rc.conf/zope28', so I guess that I just add 'zope28_enable : > "YES"' to my rc.conf? I would expect that the format would be the same as the other daemons, e.g.: zope28_enable="YES" Similar with whatever you decide to name the imapd script. For a full discussion, see rc(8), rc.conf(5), rc.subr(8), rcorder(8), etc. > Thanks for any help. I am just trying to get a good grasp on exactly > how things work here. I thought I understood it from reading the > handbook, but then it seems a bit different when I get on the server. > H.A.N.D.! -- Q: How many college football players does it take to screw in a lightbulb? A: Only one, but he gets three credits for it.