From owner-freebsd-questions@FreeBSD.ORG Mon Feb 11 17:11:27 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 48CA016A417 for ; Mon, 11 Feb 2008 17:11:27 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from be-well.ilk.org (dsl092-078-145.bos1.dsl.speakeasy.net [66.92.78.145]) by mx1.freebsd.org (Postfix) with ESMTP id 172ED13C44B for ; Mon, 11 Feb 2008 17:11:26 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: by be-well.ilk.org (Postfix, from userid 1147) id 5BD9028430; Mon, 11 Feb 2008 12:11:26 -0500 (EST) To: "lokesh babu" References: <7d4569950802110156t2b59e568y2dda415fa18776d6@mail.gmail.com> From: Lowell Gilbert Date: Mon, 11 Feb 2008 12:11:25 -0500 In-Reply-To: <7d4569950802110156t2b59e568y2dda415fa18776d6@mail.gmail.com> (lokesh babu's message of "Mon\, 11 Feb 2008 15\:26\:00 +0530") Message-ID: <44abm7zade.fsf@be-well.ilk.org> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org Subject: Re: problem while stoping a service using script 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, 11 Feb 2008 17:11:27 -0000 "lokesh babu" writes: > i want to know how to stop a service from a script > this is the sample script to stop and start a service in linux,when i kept > faststart then starting a service is working in freebsd similarly i want to > know what to do inorder to stop a service in freebsd. > > start|--start | faststart) > do_start > ;; > stop|--stop) > do_stop The easy way to do this is to fit it into FreeBSD's rc.d system, which is slightly different in detail than the way Linux does such things. You might want to start with "man rc.d".