[Samba] how can I run samba in Startup?

Craig White craigwhite at azapple.com
Sun Feb 6 15:53:58 GMT 2005


On Sun, 2005-02-06 at 09:16 -0500, Jeff wrote:
> rmgsantos at sapo.pt wrote:
> 
> > How can I put Samba to start in the FC3 boot?
> 
> You'll need to determine which runlevel you're you boot into, which can be seen 
> in /etc/inittab in a line that looks like `id:3:initdefault:`.  The 3 means the 
> system boots into runlevel 3.  So in /etc/rc3.d create the symbolic links to 
> your smb script that you used to start samba
> 
> ln -s /path/to/smb K01samba
> ln -s /path/to/smb S98samba
> 
> the K is for the shutdown
> the S is for the startup
> The numbers after are the order in they are executed.
> 
> An ls -l in the rc3.d directory will show already installed scripts looking like
> S90crond -> ../init.d/crond
----
all redhat systems employ chkconfig to handle this. It's simple and much
more understandable for users. The above might be effective for
Slackware or other BSD type systems.

chkconfig smb on #turns samba on at boot in runlevels 2,3,4 & 5

Craig



More information about the samba mailing list