RHEL6 init.d script (was Re: Initscript Debian Wheezy)

Andrew Bartlett abartlet at samba.org
Tue Sep 4 00:24:41 MDT 2012


On Tue, 2012-09-04 at 08:19 +0200, Marc Muehlfeld wrote:
> Hello Ricky,
> 
> 
> Am 03.09.2012 23:23, schrieb Ricky Nance:
> > What happens if smbd decides to stick when you are running s3fs? I don't
> > think your init script accounts for such a failure.
> 
> What do you mean by 'stick'? If processes are hanging, you can restart the 
> services with the script.
> 
> smbd is started by the samba process. I don't know if it's a good idea to kill 
> just the smbd process and start it by hand, because:
> 
> - 'smbd' is a child process of 'samba'. I guess if you start it separate, 
> 'samba' could have problems if it's not a child process. At least here, if I 
> kill all smbd processes and start /usr/local/samba/sbin/smbd --configfile 
> /usr/local/samba/private/smbd.tmp/fileserver.conf --foreground by hand, I 
> can't access any share on this server.
> 
> - if you start 'samba', then it creates a .../private/smbd.tmp/fileserver.conf 
> on startup. If it's not started by 'samba', then you propably use an outdated 
> fileserver.conf

I hope to make 'samba' self-terminate if smbd does.  Then the whole lot
can be restarted.  Given the design, this is quite unlikely to occur in
practice once ports are bound.

Andrew Bartlett

-- 
Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org




More information about the samba-technical mailing list