smb startup

Ken Stevenson ken at allenmyland.com
Wed Mar 22 13:01:05 UTC 2006


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 at 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.


More information about the freebsd-questions mailing list