From owner-freebsd-questions@FreeBSD.ORG Sun Mar 26 12:05:47 2006 Return-Path: X-Original-To: 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 71C4916A401 for ; Sun, 26 Mar 2006 12:05:47 +0000 (UTC) (envelope-from freebsd@meijome.net) Received: from sigma.octantis.com.au (ns2.octantis.com.au [207.44.189.124]) by mx1.FreeBSD.org (Postfix) with ESMTP id 16E3843D45 for ; Sun, 26 Mar 2006 12:05:46 +0000 (GMT) (envelope-from freebsd@meijome.net) Received: (qmail 4344 invoked from network); 26 Mar 2006 22:05:46 +1000 Received: from 210-84-39-124.dyn.iinet.net.au (HELO localhost) (210.84.39.124) by sigma.octantis.com.au with (DHE-RSA-AES256-SHA encrypted) SMTP; 26 Mar 2006 22:05:45 +1000 Date: Sun, 26 Mar 2006 22:05:41 +1000 From: Norberto Meijome To: Wayne Message-ID: <20060326220541.2664b51e@localhost> In-Reply-To: References: <5ceb5d550603230635l11871c9erea5ca2018635a585@mail.gmail.com> X-Mailer: Sylpheed-Claws 2.0.0 (GTK+ 2.8.16; i386-portbld-freebsd6.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: questions@freebsd.org Subject: Re: Linux migration 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: Sun, 26 Mar 2006 12:05:47 -0000 On Thu, 23 Mar 2006 14:47:54 +0000 Wayne wrote: > Also another thing that I was thinking about since my original mail, > things like chkconfig and commands like say 'service network > restart'. Does such a thing like a "redhat layer" type project exist > so that emgineers who must convert to freebsd have as much of the day > to day commands available to them while retraining? RHE has its ways, fbsd has others. it's not that hard to carry over really...you can make an simple cheatsheet for your engineeres. IMHO, it's quite simple in Freebsd: - if service is part of the base os, script is located in /etc/rc.d - if service is something you have installed, it's located in /usr/local/etc/rc.d Likewise, configuration for base services go in /etc, configuration for ports goes in /usr/local/etc/ ( If you can't tell what is part of the base OS or what is added...you may have other issues at hand :) ) Since you don't have the SysV style scripts in BSD, what gets run (base-system or added-from-ports) is defined in /etc/rc.conf (default options for base services are in /etc/defaults/rc.conf . options for services from ports are usually in the port documentation or the startup script) Regardless of this, scripts in either /etc/rc.d or /usr/local/etc/rc.d/ take the same params as RHE : start, stop, restart, status (+ custom ones in some services/ports). so 'service network restart' = /etc/rc.d/netif restart etc ( I realise you probably know all this, but i have been asked this quite a few times...so I might as well put it down for the archives :) Hope it helped someone :) Best, Beto