From owner-freebsd-questions@FreeBSD.ORG Sun Feb 26 21:51:24 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 4234916A420 for ; Sun, 26 Feb 2006 21:51:24 +0000 (GMT) (envelope-from pauls@utdallas.edu) Received: from mail.stovebolt.com (mail.stovebolt.com [66.221.101.248]) by mx1.FreeBSD.org (Postfix) with ESMTP id E962B43D53 for ; Sun, 26 Feb 2006 21:51:23 +0000 (GMT) (envelope-from pauls@utdallas.edu) Received: from [192.168.2.101] (adsl-65-65-115-68.dsl.rcsntx.swbell.net [65.65.115.68]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.stovebolt.com (Postfix) with ESMTP id C3FD5114308; Sun, 26 Feb 2006 15:51:35 -0600 (CST) Date: Sun, 26 Feb 2006 15:50:20 -0600 From: Paul Schmehl To: Joacim Melin , freebsd-questions@freebsd.org Message-ID: In-Reply-To: <066085E5-2953-44ED-9C17-8B0FF8FC22FB@melin.org> References: <17410.1177.855898.400422@jerusalem.litteratus.org> <066085E5-2953-44ED-9C17-8B0FF8FC22FB@melin.org> X-Mailer: Mulberry/4.0.0 (Mac OS X) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: Subject: Re: Startup script X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Paul Schmehl List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Feb 2006 21:51:24 -0000 --On February 26, 2006 9:54:45 PM +0100 Joacim Melin wrote: > And if there isn't any /etc/rc.local I just create one and put stuff in > there? > No, no, no....when you install ports, their scripts are installed in /usr/local/etc/rc.d/. System daemons are installed in /etc/rc.d/. You should never have to write a startup script for a port you install. We maintainers are responsible for doing that. If a port doesn't install a daemon, there may not be a startup script. In that case, you can write one. Read man (8) rc.d and man (8) rc.subr for details. Rc.local is deprecated and seldom needs to be used (although it's still available.) After you install a port, go read the script in /usr/local/etc/rc.d. It will tell you what the options are that you can put into /etc/rc.conf. In most cases a simple portname_enable="YES" is all that's needed, but some will have flags that can be set or other options that you might want to use. (The same is true of /etc/rc.d scripts. E.g. /etc/rc.d/named.) Paul Schmehl (pauls@utdallas.edu) Adjunct Information Security Officer University of Texas at Dallas AVIEN Founding Member http://www.utdallas.edu/