Auto starting the daemon in redhat

Anthony J. Breeds-Taurima tony at cantech.net.au
Thu Nov 1 19:46:03 GMT 2001


On Thu, 1 Nov 2001, Jon wrote:

> 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
> 
> 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.
> 
> I set them up as symbolic links, was I supposed to do hard links - i.e. just use ln ... (not -s)
> 
> It said symbolic links!
> 
> Thanks in advance

Remove all the symbolic links you created.
edit /etc/rc.d/init.d/smb
Lokk for the like that begins in:
# chkconfig:

Make it something like:
# chkconfig: 345 91 35

Then run :
# chkconfig --del smb         # remove any trailing symlinks
# chkconfig --add smb         # setup the correct symlinks
# chkconfig --list smb        # show us?

You should see something like:
smb             0:off   1:off   2:off   3:on    4:on    5:on    6:off

This means that samba will start in run levels 3 4 5 and will turn off if
you switch to run levels 0 1 2 6.

This is usefull  for making sure that your changes to smb.conf are read.
service smb restart

It _will_ kill the service tho so make sure that wont upset anyone.


Yours Tony.

/*
 * "The significant problems we face cannot be solved at the 
 * same level of thinking we were at when we created them."
 * --Albert Einstein
 */





More information about the samba mailing list