Re: [Samba] ubuntu doesn't daemonize smbd

2011-01-13 Thread Chris Smith
On Thu, Jan 13, 2011 at 1:34 AM, Christian PERRIER  wrote:
> I just forwarded your mail to Steve and I think he'll make sure this
> reaches the right folks in Ubuntu server team.

Thank you. Would be nice to see these startup scripts work properly.
I'll be happy to provide any additional information that may help
resolve the issue.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] ubuntu doesn't daemonize smbd

2011-01-13 Thread Chris Smith
On Thu, Jan 13, 2011 at 1:38 AM, Christian PERRIER  wrote:
>> And I have seen reported instances of Samba issues on Ubuntu being
>> resolved by avoiding the distro packages and compiling from source.
>
> Hmmm, could be interesting to learn about which ones.

The reports I allude to I've read on this list.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] ubuntu doesn't daemonize smbd

2011-01-13 Thread Christian PERRIER
Quoting Chris Smith (smb...@chrissmith.org):
> OK, not exactly a samba issue but maybe the Ubuntu maintainer reads
> this list and can provide some input.


There is not exactly such thing as "the Ubuntu maintainer". As far as
I can tell (with my Debian package maintainer hat), samba packages in
Ubuntu are taken unchanged from Debian and very few Ubuntu-specific
changes are made (the upstart-related change being one as Debian
doesn't use upstart by default). 

This is monitored by Ubuntu server team, also with Steve Langasek (my
co-maintainer for samba in Debian...and Canonical employee, though
he's working on different things for Ubuntu).

I just forwarded your mail to Steve and I think he'll make sure this
reaches the right folks in Ubuntu server team.


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] ubuntu doesn't daemonize smbd

2011-01-13 Thread Christian PERRIER
Quoting Chris Smith (smb...@chrissmith.org):

> And I have seen reported instances of Samba issues on Ubuntu being
> resolved by avoiding the distro packages and compiling from source.


Hmmm, could be interesting to learn about which ones. Since 2-3 years,
we made great efforts in Debian to avoid changing the behaviour of
samba in our packages wrt upstream behaviour. Several code patches
have been discussed with upstream, often integrated and sometimes
abandoned. 

As a consequence, I would say that I don't see reasons for the
behaviour of samba in Debian or Ubuntu packages to be different from
samba compiled from sources.

Of course, assuming you're comparing the same upstream version.

So, if there are such issues, the packagers might be highly interested
to learn about them (the best being bug reports in the distro's bug
tracker). I think the same also stands for packages in rpm-based distros.

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] ubuntu doesn't daemonize smbd

2011-01-12 Thread Chris Smith
On Wed, Jan 12, 2011 at 4:20 PM, William E Jojo  wrote:
> It's similar to the way you can use startsrc or stopsrc on AIX.
>
> -F
>           If specified, this parameter causes the main smbd process to not
>           daemonize, i.e. double-fork and disassociate with the terminal.
>           Child processes are still created as normal to service each
>           connection request, but the main process does not exit. This
>           operation mode is suitable for running smbd under process
>           supervisors such as supervise and svscan from Daniel J. Bernstein´s
>           daemontools package, or the AIX process monitor.

I've seen the man page :) AFAIK, running it as a daemon is preferable,
and I've always run it that way. If you had read further up the man
page you would have found:
"Operating the server as a daemon is the recommended way of running
smbd for servers that provide more than casual use file and print
services. This switch is assumed if smbd is executed on the command
line of a shell."

>> On the plus side, I am thankful that I have continued to avoid Ubuntu
>> as a candidate in any critical server role.
>
> Really, why? Is it unstable for you in some way? Just curious as I've not had 
> any issues thus far and Canonical support is very responsive.

The problem with needed to restart nmbd manually (or via an additional
script) that I alluded is one reason. Choosing to not run smbd as a
daemon seems to be mistake in one way or another - you can set daemon
or inetd mode in /etc/default/samba but the smbd.conf upstart script
is hardcoded to run "smbd -F" and just as oddly the nmbd.conf script
is hardcoded to run "nmbd -D", both ignoring the setting in
/etc/default/samba.
And I have seen reported instances of Samba issues on Ubuntu being
resolved by avoiding the distro packages and compiling from source.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

Re: [Samba] ubuntu doesn't daemonize smbd

2011-01-12 Thread William E Jojo



- Original Message -
> From: "Chris Smith" 
> To: "Samba List" 
> Sent: Wednesday, January 12, 2011 1:14:07 PM
> Subject: [Samba] ubuntu doesn't daemonize smbd
> OK, not exactly a samba issue but maybe the Ubuntu maintainer reads
> this list and can provide some input.
> 
> Problem: Ubuntu doesn't daemonize smbd.
> 
> System: Ubuntu Lucid where a recent update moved many startup scripts
> into the "upstart" system.
> 
> Now smbd is started and runs as "smbd -F". If I edit the upstart
> script (/etc/init/smbd.conf) so that it runs as "smbd -D" (the default
> and what I would like) it doesn't work. I see no inet.d running so I
> have no clue how it works at all like this.
> 

It's similar to the way you can use startsrc or stopsrc on AIX.

-F
   If specified, this parameter causes the main smbd process to not
   daemonize, i.e. double-fork and disassociate with the terminal.
   Child processes are still created as normal to service each
   connection request, but the main process does not exit. This
   operation mode is suitable for running smbd under process
   supervisors such as supervise and svscan from Daniel J. Bernstein´s
   daemontools package, or the AIX process monitor.



> Also this change to upstart did not resolve the problem of nmbd not
> starting correctly, it just nullified the script I had in rc.local to
> restart nmbd (guess I will rewrite this).
> 

Sorry, can't speak to that.

> On the plus side, I am thankful that I have continued to avoid Ubuntu
> as a candidate in any critical server role.
> 

Really, why? Is it unstable for you in some way? Just curious as I've not had 
any issues thus far and Canonical support is very responsive.

Cheers,
Bill


> Chris
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: https://lists.samba.org/mailman/options/samba
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

Re: [Samba] ubuntu doesn't daemonize smbd

2011-01-12 Thread Chris Smith
On Wed, Jan 12, 2011 at 1:14 PM, Chris Smith  wrote:
> Now smbd is started and runs as "smbd -F". If I edit the upstart
> script (/etc/init/smbd.conf) so that it runs as "smbd -D" (the default
> and what I would like) it doesn't work.

Must have been a fluke - it does appear now that editing smbd.conf to
start as -D is working except the "service smbd stop" command no
longer functions. Guess this should really be on an Ubuntu forum.
Sorry for the noise.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba