From owner-freebsd-questions@FreeBSD.ORG Tue Nov 29 18:33:11 2011 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 921771065672 for ; Tue, 29 Nov 2011 18:33:11 +0000 (UTC) (envelope-from ml@my.gd) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 1934D8FC15 for ; Tue, 29 Nov 2011 18:33:10 +0000 (UTC) Received: by bkbzs8 with SMTP id zs8so13032104bkb.13 for ; Tue, 29 Nov 2011 10:33:10 -0800 (PST) Received: by 10.204.15.137 with SMTP id k9mr50252631bka.74.1322591589803; Tue, 29 Nov 2011 10:33:09 -0800 (PST) Received: from dfleuriot-at-hi-media.com ([83.167.62.196]) by mx.google.com with ESMTPS id z7sm38801154bka.1.2011.11.29.10.33.07 (version=SSLv3 cipher=OTHER); Tue, 29 Nov 2011 10:33:08 -0800 (PST) Message-ID: <4ED52562.2010505@my.gd> Date: Tue, 29 Nov 2011 19:33:06 +0100 From: Damien Fleuriot User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <1751333245.20111129200240@yandex.ru> In-Reply-To: <1751333245.20111129200240@yandex.ru> Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: 7bit Subject: Re: bug in rc.conf 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: Tue, 29 Nov 2011 18:33:11 -0000 On 11/29/11 7:02 PM, FreeLine wrote: > I think status must check service in any case and I must not to setup > _enable="YES" in rc.conf. > > Because of people want to check something: > -- Are that service running or not? (He do not know that service was > runned by /usr/local/etc/rc.d/service start or onestart. He just want > to check) > > # /usr/local/etc/rc.d/quagga status > Cannot 'status' zebra. Set quagga_enable to YES in /etc/rc.conf or use > 'onestatus' instead of 'status'. > Cannot 'status' bgpd. Set quagga_enable to YES in /etc/rc.conf or use > 'onestatus' instead of 'status'. > It occurs to me that the answer to your problem (checking whether a service runs regardless of it being enabled in /etc/rc.conf) is in your original post. Use onestatus instead of status: /usr/local/etc/rc.d/nginx onestatus Also, maybe you shouldn't be so quick to claim you've found a bug in software used by literally tens of thousands of people and which seems to work fine for them. Such claims need to be backed up by strong evidence ;)