LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   start Samba on boot (https://www.linuxquestions.org/questions/linux-networking-3/start-samba-on-boot-11897/)

cliffyman 01-16-2002 08:08 AM

start Samba on boot
 
Very simple question here - how do I start Samba on boot? I tried adding a script file called 'samba' to the /etc/rc.d/init.d/ directory, but i'm not sure (a) what that's really used for, and (b) if there are specific things that my script has to have in order for it to work there. it contained only a single line:

/usr/sbin/samba start

but samba didn't start on boot. i know this has got to be pretty simple. suggestions? i'd really appreciate your help, thanks!

bluecadet 01-16-2002 09:07 AM

you should have a system editor like sysvinit to tkinit which you can swith servers etc.. on and off...but manually...

you shoulod alreay have a /etc/init.d/smb file which is samba. you nee to link this script into the directory relating tou rour normal runlevel:

ln -s /etc/rc.d/init.d/smb /etc/rc.d/rc3.d/S80smb

which will load samba fairly late in the boot (i.e. after network is loaded...) on runlevel 3, which is normal console login.

bankrupt 01-16-2002 09:55 AM

I do not curently have smb installed. However I have done this in the past successfully. It would be much simpler to go into Linuxconf and select the control tab. In there you will see Control Service Activity. Look for SMB in the list of services. I think that when you install smb it automatically adds it to the list, but I may be mistaken. Anyway assuming that it is in the list of services, all you need to do is click on it and change the startup from manual to automatic. You can make other changes like telling it at what point you want it to load, before the network or after etc..., but most of that is done for you.

Now if it is not in the list of services, then all you need to do is add it in the Control files & Systems, Create Linux addons. It is really simple, just fill in the appropriate command lines and anything else you need. (Keep it simple) Then go back into the Control Service Activity and change it to automatic.

Syncrm 01-16-2002 10:17 AM

if you're running redhat, try running "ntsysv". this will let you configure the daemons and services you want to be activated at boot. samba should be available in the list.

simple as that. :-)

DIRKFOUR4 04-23-2004 09:07 AM

ntsysv
 
That was really slick, Syncrm and helped a ton...thanks for your expertise (and I didn't even have to ask for it ;)


All times are GMT -5. The time now is 02:28 AM.