Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Aug 2006 11:51:06 -0700
From:      "Bill Blue" <bblue@controlroom.net>
To:        "Rainer Alves" <rainer.alves@gmail.com>
Cc:        ports@freebsd.org
Subject:   Re: FreeBSD Port: net/samba3 (rc.d weirdness)
Message-ID:  <op.td6pbgxmr2360o@v2.netoldies.com>
In-Reply-To: <44DE1CFD.4010204@gmail.com>
References:  <44DE1656.1020803@rogers.com> <44DE1CFD.4010204@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 12 Aug 2006 11:25:01 -0700, Rainer Alves <rainer.alves@gmail.com=
>  =

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?op.td6pbgxmr2360o>