On Sat, 12 Aug 2006 11:25:01 -0700, Rainer Alves <[EMAIL PROTECTED]> wrote:

Mike Jakubik wrote:
The startup script for Samba states:
[...]
However when setting samba_enable="YES" in rc.conf, the restart option does not function correctly, as it only restarts smbd. If we instead set the alternative of nmbd_enable="YES" and smbd_enable="YES", we 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 any samba-related variables set.

[EMAIL PROTECTED] ~]$ egrep '(samba|smb|nmb)' /etc/rc.conf | wc -l
        0

[EMAIL PROTECTED] ~]$ 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="YES" remove them. It should work fine after that.

--Bill

_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to