From owner-freebsd-ports@FreeBSD.ORG Sat Aug 12 18:51:12 2006 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 509E216A4E2 for ; Sat, 12 Aug 2006 18:51:12 +0000 (UTC) (envelope-from bblue@controlroom.net) Received: from netoldies.com (nada.netoldies.com [66.146.162.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1618643D66 for ; Sat, 12 Aug 2006 18:51:10 +0000 (GMT) (envelope-from bblue@controlroom.net) Received: from v2.netoldies.com by netoldies.com (MDaemon PRO v9.0.6) with ESMTP id md50000123278.msg for ; Sat, 12 Aug 2006 11:51:09 -0700 Date: Sat, 12 Aug 2006 11:51:06 -0700 To: "Rainer Alves" From: "Bill Blue" Organization: Controlroom Content-Type: text/plain; format=flowed; delsp=yes; charset=us-ascii MIME-Version: 1.0 References: <44DE1656.1020803@rogers.com> <44DE1CFD.4010204@gmail.com> Content-Transfer-Encoding: Quoted-Printable Message-ID: In-Reply-To: <44DE1CFD.4010204@gmail.com> User-Agent: Opera Mail/9.00 (FreeBSD) X-Spam-Processed: netoldies.com, Sat, 12 Aug 2006 11:51:09 -0700 (not processed: message from valid local sender) X-Return-Path: bblue@controlroom.net X-Envelope-From: bblue@controlroom.net X-MDaemon-Deliver-To: ports@freebsd.org Cc: ports@freebsd.org Subject: Re: FreeBSD Port: net/samba3 (rc.d weirdness) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Aug 2006 18:51:12 -0000 On Sat, 12 Aug 2006 11:25:01 -0700, Rainer Alves = wrote: > Mike Jakubik wrote: >> The startup script for Samba states: > [...] >> However when setting samba_enable=3D"YES" in rc.conf, the restart opt= ion = >> does not function correctly, as it only restarts smbd. If we instead = = >> set the alternative of nmbd_enable=3D"YES" and smbd_enable=3D"YES", w= e get = >> the following warning during startup. >> /etc/rc: WARNING: $samba_enable is not set properly - see rc.conf(5)= . > > This message is also shown during boot even if rc.conf doesn't have an= y = > samba-related variables set. > > [rainer@bsd ~]$ egrep '(samba|smb|nmb)' /etc/rc.conf | wc -l > 0 > > [rainer@bsd ~]$ grep 'not set properly' /var/log/messages > Aug 11 19:25:13 bsd root: /etc/rc.shutdown: WARNING: $samba_enable is = = > not set properly - see rc.conf(5). > Aug 11 22:17:48 bsd root: /etc/rc: WARNING: $samba_enable is not set = > properly - see rc.conf(5). I ran into this too. First, net/samba is an old 2* version which should= = not be used. Instead use net/samba3 cvsup'd to 3.0.2.3. Next, remove anything having to do with samba, smbd, nmbd from /etc/rc.d= , = as it does not belong there. The correct config is in /usr/local/etc/rc.d as 'samba' and will do the = = right things when called during the rc rotations. If there are any references to samba in /etc/rc.conf other than = samba_enable=3D"YES" remove them. It should work fine after that. --Bill