[Pkg-samba-maint] Samba start stop script does not check for configuration file

Jacob.Van.Der.Meulen at esa.int Jacob.Van.Der.Meulen at esa.int
Thu Mar 26 09:54:37 UTC 2009


Dear Sir, Mrs,

Is it possible to add to the samba start stop script a check for the
existence of the samba configuration file like you do for checking the
existence of the daemons?

Suggestion for /etc/init.d/samba:

Change:

   test -x /usr/sbin/nmbd -a -x /usr/sbin/smbd || exit 0

by

   test -x /usr/sbin/nmbd -a -x /usr/sbin/smbd -a -r /etc/samba/smb.conf ||
   exit 0

On my high available cluster (fail-over) I want to have samba running on the
active node only. So my /etc/samba is a link to a shared location which is
only accessible from the active node. With the proposed check the Samba
start-up trial on the not active node will not generate a failure.

Regards,

Jacob van der Meulen
------------------------------------------------------------------------------

Jacob van der Meulen
Data Handling Engineer
European Test Services (ETS) B.V.
Tel.  +31-(0)71-565 57 85
Fax. +31-(0)71-565 56 59
www.european-test-services.net
------------------------------------------------------------------------------




More information about the Pkg-samba-maint mailing list