From owner-freebsd-stable@FreeBSD.ORG Sat Mar 5 20:57:51 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx2.freebsd.org (mx2.freebsd.org [IPv6:2001:4f8:fff6::35]) by hub.freebsd.org (Postfix) with ESMTP id D415B106566C for ; Sat, 5 Mar 2011 20:57:51 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from doug-optiplex.ka9q.net (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id B3E211525B3; Sat, 5 Mar 2011 20:57:49 +0000 (UTC) Message-ID: <4D72A3CD.2070904@FreeBSD.org> Date: Sat, 05 Mar 2011 12:57:49 -0800 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.15) Gecko/20110304 Thunderbird/3.1.9 MIME-Version: 1.0 To: Miroslav Lachman <000.fbsd@quip.cz> References: <6v82n6934o8p7u4vpbde35dbnc41mjd4a5@4ax.com> <4D716CEE.7040106@quip.cz> In-Reply-To: <4D716CEE.7040106@quip.cz> X-Enigmail-Version: 1.1.2 OpenPGP: id=1A1ABC84 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Hilko Meyer , freebsd-stable@freebsd.org Subject: Re: service(8) doesn't list dhcpd startscript X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Mar 2011 20:57:51 -0000 On 03/04/2011 14:51, Miroslav Lachman wrote: > Hilko Meyer wrote: >> Hi, >> >> today I played a bit with service(8) and I noticed that it doesn't >> properly >> detects the isc-dhcpd-startscript. System is 7.3-RELEASE-p4. 'service >> -l' lists >> isc-dhcpd but 'service -e' doesn't lists it: >> | hilti@kirk:~> service -l | grep dhcp >> | isc-dhcpd >> | hilti@kirk:~> service -e | grep dhcp >> | hilti@kirk:~> /usr/local/etc/rc.d/isc-dhcpd rcvar >> | # dhcpd >> | dhcpd_enable=YES > > It works for me on newer version of the FreeBSD (7.4-RELEASE) and with > newer dhcpd (isc-dhcp41-server-4.1.2_2,1) > > ~/# service -l | grep dhcp > isc-dhcpd > isc-dhcpd6 > > ~/# service -e | grep dhcp > /usr/local/etc/rc.d/isc-dhcpd > /usr/local/etc/rc.d/isc-dhcpd6 > > ~/# /usr/local/etc/rc.d/isc-dhcpd rcvar > # dhcpd > dhcpd_enable=YES > > So you can compare rc scripts for those two versions or compare changes > in service between these two FreeBSD releases. I'm glad to hear that Miroslav was able to make it work. I looked at the code and it's pretty simple, so I'm not sure why it would fail. Hilko, if you can add -x to the end of the #!/bin/sh line in /usr/sbin/service it might give you more of an idea of what's going on. hth, Doug -- Nothin' ever doesn't change, but nothin' changes much. -- OK Go Breadth of IT experience, and depth of knowledge in the DNS. Yours for the right price. :) http://SupersetSolutions.com/