[Samba] Samba Daemon start @ boot time

André Weidemann Andre.Weidemann at web.de
Thu Feb 13 11:13:35 GMT 2003


Stefan Schlesinger wrote:
> Hi, I'm new to linux and wanna know how to setup an 'autostart' for samba
> at boottime,
> i guess i've to put something like a shellscript in /etc/init.d. is there
> any documentation of this ?
There is...

First you should understand how Linux boots.
Read "man inittab". inittab is the config file for init. init is the 
first process started after loading the kernel.
Inside the file /etc/inittab you will see lines containing rc0 to rc6.
These tell init which scrips to start when entering a runlevel.
In /etc/init.d/ you will most likely find a script called smb. What you 
have to do to make it start is to change into /etc/init.d/rc3.d and type 
"ln -s ../smb S11smb" and "ln -s ..smb K13smb" then do this again in the 
rc5.d directory.

If you are using SuSE you can use the runleveleditor that comes with yast.

Good luck,
  André.

> 
> 



More information about the samba mailing list