smbd doesn't start

Oliver Brakmann obrakmann at gmx.net
Wed Aug 7 04:49:19 PDT 2002


Hi,

Mark Hymers wrote...
> The problem in the end came down to the fact that samba was expecting to
> place its pid files in /var/run/samba and that on bootup, the cleanfs
> script was doing a rm -fr /var/run/* wiping out the directory.

[...]

> Therefore, check where smbd and nmbd are expecting their pid files and
> if you need to mkdir /var/run/samba (or whatever) and if this works,
> consider adding it to your cleanfs script.

As a lot of programs create their own directories in /var/run and /var/lock
(samba, leafnode, ...), it's probably best to not re-create the directories
in the init scripts, but to delete all the files within those directories
only, ie.:

find /var/{run,lock} -not -type d -exec rm {} \;
evaluate_retval

This was mentioned some time ago on lfs-dev, IIRC.

HTH too,
Oliver
-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe blfs-support' in the subject header of the message



More information about the blfs-support mailing list