From owner-freebsd-questions Wed Oct 23 13:36:40 2002 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 817C937B401 for ; Wed, 23 Oct 2002 13:36:39 -0700 (PDT) Received: from claire.namodn.com (namodn.com [209.0.100.49]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3C5F943E3B for ; Wed, 23 Oct 2002 13:36:39 -0700 (PDT) (envelope-from nkj@namodn.com) Received: from nkj by claire.namodn.com with local (Exim 3.12 #1 (Debian)) id 184SXO-0002Y3-00; Wed, 23 Oct 2002 13:55:34 -0700 Date: Wed, 23 Oct 2002 13:55:34 -0700 From: Nick Jennings To: samuel_joy@ieee.org Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Command like chkconfig Message-ID: <20021023135534.F30156@namodn.com> References: <929440761.1035385828419.JavaMail.root@webmail> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <929440761.1035385828419.JavaMail.root@webmail>; from samuel_joy@icenet.net on Wed, Oct 23, 2002 at 08:40:28PM +0530 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Oct 23, 2002 at 08:40:28PM +0530, Samuel Joy wrote: > Is there a command like chkconfig that we use in redhat present in FreeBSD. > I want to have a scrpt that is custom written by me to start automatically > when the FreeBSD server boots up. If it's a custom script (i.e. something not from base) put it in /usr/local/etc/rc.d/ No need to worry about runlevels etc. It will be exectuted during boot via. /usr/local/etc/rc.d/ start And during shutdown: /usr/local/etc/rc.d/ stop If it's a simple enough script (i.e. you just want to start something) you'll be fine just ignoring params and starting whatever you need to start. When the system is shutdown down there is generally no harm in having the process not specifically "killed" via. the 'stop' param. - Nick Jennings - nkj@namodn.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message