mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
ctdb-scripts: Factor out nfs_load_config()
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13860 Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@samba.org>
This commit is contained in:
parent
e72c3c800a
commit
8de0a339b5
@ -64,6 +64,16 @@ EOF
|
||||
exit 1
|
||||
}
|
||||
|
||||
##################################################
|
||||
|
||||
nfs_load_config ()
|
||||
{
|
||||
_config="${1:-${nfs_config}}"
|
||||
|
||||
if [ -r "$_config" ] ; then
|
||||
. "$_config"
|
||||
fi
|
||||
}
|
||||
|
||||
##################################################
|
||||
# Basic service stop and start
|
||||
@ -167,9 +177,7 @@ nfs_startup ()
|
||||
nfs_check_thread_count ()
|
||||
{
|
||||
# Load NFS configuration to get desired number of threads.
|
||||
if [ -r "$nfs_config" ] ; then
|
||||
. "$nfs_config"
|
||||
fi
|
||||
nfs_load_config
|
||||
|
||||
# If $RPCNFSDCOUNT/$USE_KERNEL_NFSD_NUMBER isn't set then we could
|
||||
# guess the default from the initscript. However, let's just
|
||||
|
Loading…
Reference in New Issue
Block a user