Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Mar 2006 08:00:42 -0500
From:      Ken Stevenson <ken@allenmyland.com>
To:        spen <renas13@yahoo.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: smb startup
Message-ID:  <44214A7A.50303@allenmyland.com>
In-Reply-To: <20060322111946.45805.qmail@web31110.mail.mud.yahoo.com>
References:  <20060322111946.45805.qmail@web31110.mail.mud.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
spen wrote:
> Thank you for you answer but unfortunately this didn't work either...
> if I ps -auwx |grep mbd I get nothing running
> 
> If I manually start the script :
> 
> avid# /usr/local/etc/rc.d/samba.sh start
> Starting SAMBA: removing stale tdbs :
> Starting nmbd.
> Starting smbd.
> avid# 
> avid# 
> avid# ps -auwx | grep mbd
> root    558  0.0  1.1  4828  2712  ??  Ss    1:25PM   0:00.01 /usr/local/sbin/nmbd -D -s /usr/local/etc/smb.conf
> root    562  0.0  1.8  7492  4500  ??  Ss    1:25PM   0:00.01 /usr/local/sbin/smbd -D -s /usr/local/etc/smb.conf
> root    564  0.0  1.8  7492  4488  ??  S     1:25PM   0:00.00 /usr/local/sbin/smbd -D -s /usr/local/etc/smb.conf
> 
> ##my rc.conf##
> avid# cat /etc/rc.conf
> 
> # -- sysinstall generated deltas -- # Thu Mar 16 18:21:31 2006
> # Created: Thu Mar 16 18:21:31 2006
> # Enable network daemons for user convenience.
> # Please make all changes to this file, not to /etc/defaults/rc.conf.
> # This file now contains just the overrides from /etc/defaults/rc.conf.
> defaultrouter="10.10.10.1"
> hostname="avid.e-global.gr"
> ifconfig_xl0="inet 10.10.10.10  netmask 255.255.255.240"
> sshd_enable="YES"
> usbd_enable="YES"
> 
> 
> ###samba start###
> smbd_enable="YES"
> nmbd_enable="YES"
> 
> 
> 
> Riemer Palstra <riemer@palstra.com> wrote: On Wed, Mar 22, 2006 at 02:10:00AM -0800, spen wrote:
>> ###samba start###
>> samba_enable="YES"
>>
>> should I be adding something  else to my rc.conf?
> 
> Try these instead:
> 
> smbd_enable="YES"
> nmbd_enable="YES"
> 
The only thing you need in rc.conf is samba_enable="YES".

If you do a dmesg -a, do you see any Samba related startup errors? If 
not, how about the log files in /var/log/samba?

It sounds like Samba is failing at startup because it requires 
something that's not available yet (like DNS). After your machine is 
finished booting, it has the environment it requires.

-- 
Ken Stevenson
Allen-Myland Inc.



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