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
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 linksHopefully it was ln -s.......> 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.Then you did not get them right. If you are using the redhat rpms all you need to do is as root run ntsysv and select smb. this will make the links for you in the current runlevel.> 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!and that is correct. If you are not using the redhat init script then cd to the directory you want the link in. Do "ln -s ../init.d/smb S91smb" That should do it. This assumes you put the script in /etc/rc.d/init.d or /etc/init.d/ they are both the same if you have redhat 7.0 or later. HTH, -- ......Tom Dysfunction The Only Consistent Feature of All tdiehl@rogueind.com of Your Dissatisfying Relationships is You.
> 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/smbUm. 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 advancekw
Forget about the links and the colors, try using chkconfig. Not sure what version og Red Hat this showed up in (I'm using 7.1). Something like "chkconfig --level 35 smb on" tells Red Hat to start the smb service when entering run levels 3 and 5. HTH, Doug> -----Original Message----- > From: samba-admin@lists.samba.org [mailto:samba-admin@lists.samba.org]On > Behalf Of Jon > Sent: Thursday, November 01, 2001 3:34 PM > To: samba@lists.samba.org > Subject: Auto starting the daemon in redhat > > > 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 > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba >
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 advanceRemove 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 */