[Samba] SMB service not starting automatically

Paul Gienger pgienger at ae-solutions.com
Fri May 20 17:57:43 GMT 2005


>automatically as it used to.  Can someone point me in the right direction as
>what file I need to change to make it load at startup.  Thanks!
>  
>
You could have at least provided the OS you're running on.  Since you 
reference the service command, I am going to assume Fedora, since that's 
the only thing I've seen that has it.  I bet there's others, but without 
a proper description, I'll use what's on the top of my head.  This also 
assumes you've installed from rpm, whether you made it or got it from 
redhat or somplace like dag.

In Fedora, you can easily work on the daemons running at startup with 
the chkconfig command. 
chkconfig --list smb
will show you the run levels that samba will be started in.  To change 
it for a particular runlevel issue the following:
chkconfig --level N smb on|off
N can be any valid runlevel -> 12345 or a combo.  On my systems I do
chkconfig --level 345 smb on
You can use 'off' to shut off any services you don't want.  This only 
changes the startup command, it doesn't affect the current state of the 
service.

-- 
Paul Gienger                    Office: 701-281-1884
Applied Engineering Inc.
Systems Architect               Fax:    701-281-1322
URL: www.ae-solutions.com       mailto: pgienger at ae-solutions.com





More information about the samba mailing list