The smb service is not starting automatically. I can type service smb start at the prompt and it loads, and I can then connect, but its not loading 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! Liz
You must have a file in /etc/init.d like smb and call the command chkconfig smb on A example file can be found in examples directory in samba sources files. Liz Ackerman a ?crit :>The smb service is not starting automatically. I can type service smb start >at the prompt and it loads, and I can then connect, but its not loading >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! > >Liz > >-- St?phane Purnelle <stephane.purnelle@tiscali.be> Site Web : http://www.linuxplusvalue.be
>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@ae-solutions.com
This would depend on what OS you run. For Solaris, I create an smb script in /etc/init.d, then link to this from /etc/rc2.d. I also create a kill link in /etc/rc0.d: # ln -s /etc/init.d/smb /etc/rc0.d/K90smb # ln -s /etc/init.d/smb /etc/rc2.d/S90smb # more /etc/init.d/smb #!/bin/sh case "$1" in start) /usr/local/samba/sbin/smbd -D /usr/local/samba/sbin/nmbd -D ;; stop) /usr/bin/pkill -x -u 0 smbd /usr/bin/pkill -x -u 0 nmbd ;; *) echo "Usage: smb {start|stop}" ;; esac exit 0 # Cheers, Chuck At 09:42 AM 5/20/2005, Liz Ackerman wrote:>The smb service is not starting automatically. I can type service smb start >at the prompt and it loads, and I can then connect, but its not loading >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! > >Liz >-- >To unsubscribe from this list go to the following URL and read the >instructions: https://lists.samba.org/mailman/listinfo/sambaChuck Theobald System Administrator The Robert and Beverly Lewis Center for Neuroimaging University of Oregon P: 541-346-0343 F: 541-346-0345