Auto starting the daemon in redhat

Keith Warno kw at valaran.com
Thu Nov 1 15:32:05 GMT 2001


> I am having a problem with the auto running of the samba daemons in red hat
> 
> I got the smb script from the site and place it as /etc/rc.c/init.d/smb

Um.  Which site would that be?  And does the script work fine when you
execute it like this:

/etc/rc.d/init.d/smb start
/etc/rc.d/init.d/smb stop

and so on?

> Then I set up symbolic links in the places it told me.  
> 
> I used lm -s ..... for the links
> 
> I went into the place where one link was and I use colors to signify what something is. All of the links are in cyan except for the one created which is white with a red bg.

White with red background in redhat, by default, means it's a broken
symbolic link (AKA "dangling link").  So the link was created incorrectly;
the target (the "real" file, the smb script, that you are linking to) was
probably specified incorrectly.

When using ln you should get into the habbit of specifying the full path
of the "real" file (the "source file") you are linking to.  For example:

# ln -s /etc/rc.d/init.d/smb S30smb

creates a link called S30smb, in the current directory, which points to
/etc/rc.d/init.d/smb .  You could use absolute paths for the source file
but it is easier to screw these up.

> I set them up as symbolic links, was I supposed to do hard links - i.e. just use ln ... (not -s)

Nope.

> It said symbolic links!

And it meant it!  ;-)

> Thanks in advance


kw






More information about the samba mailing list