RE: Running smb without nmb? (Linux Suse 8.1 feature)
[sorry - bit of a belated reply - I have a bit of a backlog to read] On 23rd.Oct.2002, Linda Walsh asked : > I recently upgraded my Linux distro to SuSE 8.1 which > came w/samba 2.2.5. > > A feature of the upgrade was that it 'split' the startup > script for samba from 1 script for _smb_ & _nmb_ to 2 scripts. > > So how/why would splitting these scripts be a good thing? I can think of one good reason why a sysadmin might want to *re*start nmb without restarting smb - loss of WINS registration. For us, that happens periodically to the registration of our Samba boxen with our corporate Windows WINS servers, and I _think_ the underlying cause is that the WINS servers get rebooted. The first we notice is that calls start coming in from people who can no longer map network drives to the Sambas, or can no longer contact development webservers on the same boxes by NetBIOS name alone. A simple restart of nmb solves the problem, and restarting smb at the same time would be both unnecessary and undesirable. Nick Boyce EDS Southwest Solution Centre, Bristol, UK
Re: [Samba] Re: Running smb without nmb? (Linux Suse 8.1 feature)
Richard Sharpe wrote: On Thu, 24 Oct 2002, Matthew Hannigan wrote: So how/why would splitting these scripts be a good thing? It's possible to not run nmbd at all, and in some circumstances that's what you would want. Hmmm, I recently developed a script for starting smbd and nmbd under RedHat, but perhaps the Samba team should contain a standard script that was usable on most FHS/LSB compliant versions but would also work, through post-processing during install, when you install in /usr/local/samba/... Does FHS not say you should install into /usr/local or /opt/samba? http://www.pathname.com/fhs/2.2/fhs-4.9.html http://www.pathname.com/fhs/2.2/fhs-3.12.html I don't know if LSB has anything to add to this. John. Regards --- [EMAIL PROTECTED], www.richardsharpe.com, [EMAIL PROTECTED], [EMAIL PROTECTED] -- Information Technology Innovation Group Swinburne University. Melbourne, Australia http://uranus.it.swin.edu.au/~jn
Re: Running smb without nmb? (Linux Suse 8.1 feature)
Hi all, let me quote from /usr/share/doc/packages/samba/README.SuSE: "Splitted init scripts - With version 2.2.5 Samba's init scripts have been reorganized. The smb script is split up into smb (for starting the smbd) and nmb (for starting nmbd). So far the two services could only be started together. If the Samba package is updated from previous versions (with the single init script) and the service was activated, then after the update both services will be activated to preserve the old behaviour. rcsamba is a compatibility script which calls the smb and nmb init script." On Wed, 23 Oct 2002 09:54:08 -0700 Jay Ts <[EMAIL PROTECTED]> wrote: > > So how/why would splitting these scripts be a good thing? > > I think it's a matter of opinion whether or not this is better. > Obviously, someone at SuSE thinks it is! :) Yep, it seems so...and I think he has done a good thing. Goetz
Re: [Samba] Re: Running smb without nmb? (Linux Suse 8.1 feature)
On Thu, 24 Oct 2002, Matthew Hannigan wrote: > > > > So how/why would splitting these scripts be a good thing? > > It's possible to not run nmbd at all, and in some > circumstances that's what you would want. Hmmm, I recently developed a script for starting smbd and nmbd under RedHat, but perhaps the Samba team should contain a standard script that was usable on most FHS/LSB compliant versions but would also work, through post-processing during install, when you install in /usr/local/samba/... Regards --- [EMAIL PROTECTED], www.richardsharpe.com, [EMAIL PROTECTED], [EMAIL PROTECTED]
Re: [Samba] Re: Running smb without nmb? (Linux Suse 8.1 feature)
> So how/why would splitting these scripts be a good thing? It's possible to not run nmbd at all, and in some circumstances that's what you would want. Matt
Re: Running smb without nmb? (Linux Suse 8.1 feature)
[samba-technical has been removed from addresses because it's for discussing source code.] l. a. walsh wrote: > I recently upgraded my Linux distro to SuSE 8.1 which > came w/samba 2.2.5. > > A feature of the upgrade was that it 'split' the startup > script for samba from 1 script for _smb_ & _nmb_ to 2 scripts. Wow, you are right. I have an installation of SuSE 8.1 here, and had to boot it up to check. Looks like I have a note to add to Chapter 2... > Question is this: is there any good reason > for splitting the two or making so one is runnable w/o the other? AFAIK, SuSE is the only Linux distribution that does this. But ... now I'll have to check a few others and see. I'd guess that they split them up (having both a smb and nmb script in /etc/init.d) to allow the two daemons to be controlled independently. That is, you can do a # /etc/init.d/nmb restart and restart just nmbd, without having to restart smbd. > So how/why would splitting these scripts be a good thing? I think it's a matter of opinion whether or not this is better. Obviously, someone at SuSE thinks it is! :) I'd suggest writing a script that does something like: #!/bin/bash /etc/init.d/smb $1 /etc/init.d/nmb $1 That way, it will work like Red Hat and other distributions, so you can start/stop/restart/(etc.) Samba with one command. Jay Ts