From owner-freebsd-rc@FreeBSD.ORG Sun Dec 20 18:24:07 2009 Return-Path: Delivered-To: freebsd-rc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 997DC106566C for ; Sun, 20 Dec 2009 18:24:07 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) by mx1.freebsd.org (Postfix) with ESMTP id 590078FC18 for ; Sun, 20 Dec 2009 18:24:07 +0000 (UTC) Received: from localhost (localhost.codelab.cz [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id EDDD119E045; Sun, 20 Dec 2009 19:05:28 +0100 (CET) Received: from [192.168.1.2] (r5bb235.net.upc.cz [86.49.61.235]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id AA80419E044; Sun, 20 Dec 2009 19:05:26 +0100 (CET) Message-ID: <4B2E6766.60904@quip.cz> Date: Sun, 20 Dec 2009 19:05:26 +0100 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.1.6) Gecko/20091206 SeaMonkey/2.0.1 MIME-Version: 1.0 To: Doug Barton References: <4B2D80E8.7000603@FreeBSD.org> In-Reply-To: <4B2D80E8.7000603@FreeBSD.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-rc@FreeBSD.org Subject: Re: new service command X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Dec 2009 18:24:07 -0000 Doug Barton wrote: > Howdy, > > The idea for a 'service' command was proposed on this list a long time > ago (sorry, I don't remember by who), maybe this thread http://lists.freebsd.org/pipermail/freebsd-ports/2009-June/055189.html > and at the time I was not > supportive. However I decided to actually give it a try, and found > that IMO it is actually quite useful. So, I've committed my version of > the concept to HEAD. > > Take a look, give it a try, etc. etc. Comments and feedback are > welcome. I'd like to get this MFC'ed prior to the 7.3 freeze unless > there is some kind of objection. I have something similar on my ToDo list with one improvement (not implemented yet). I want to be able to distinguish between start/stop called by user and start/stop command called by system startup process. What it can be used for? E.g: if I have some monitoring system trying to restart Apache if it spontaneously dies, but I don't want to restart it if Apache (or any other service) was stopped by user, until (re)started again by user or reboot of the system. Do you thing it can be useful to more people and implemented in your 'service' command or is it better not to implement it to the base tools? Miroslav Lachman