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. 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). On the plus side, I am thankful that I have continued to avoid Ubuntu as a candidate in any critical server role. Chris
On Wed, Jan 12, 2011 at 1:14 PM, Chris Smith <smb_77 at chrissmith.org> 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.
----- Original Message -----> From: "Chris Smith" <smb_77 at chrissmith.org> > To: "Samba List" <samba at lists.samba.org> > 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
Quoting Chris Smith (smb_77 at 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.