diff options
author | Martin Schwenke <martin@meltin.net> | 2019-03-20 14:50:59 +1100 |
---|---|---|
committer | Martin Schwenke <martins@samba.org> | 2019-03-31 10:45:20 +0000 |
commit | 9981353ab79dce81b698c535977be4a681119d1e (patch) | |
tree | f699df2307c8fb2f29cbc5461c30f4932af28a9e /ctdb/config | |
parent | d7e187c1a7046196ec96637bdc14cc6b042eafcc (diff) | |
download | samba-9981353ab79dce81b698c535977be4a681119d1e.tar.gz |
ctdb-scripts: Rename variable nfslock_service to nfs_lock_service
There will be more of these variable for other services so, for
readability, it makes sense for them to start with "nfs_".
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>
Diffstat (limited to 'ctdb/config')
-rwxr-xr-x | ctdb/config/nfs-linux-kernel-callout | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/ctdb/config/nfs-linux-kernel-callout b/ctdb/config/nfs-linux-kernel-callout index 295989cd0ff..73623d87875 100755 --- a/ctdb/config/nfs-linux-kernel-callout +++ b/ctdb/config/nfs-linux-kernel-callout @@ -14,17 +14,17 @@ nfs_exports_file="${CTDB_NFS_EXPORTS_FILE:-/var/lib/nfs/etab}" # Red Hat nfs_service="nfs" -nfslock_service="nfslock" +nfs_lock_service="nfslock" nfs_config="/etc/sysconfig/nfs" # SUSE #nfs_service="nfsserver" -#nfslock_service="" +#nfs_lock_service="" #nfs_config="/etc/sysconfig/nfs" # Debian #nfs_service="nfs-kernel-server" -#nfslock_service="" +#nfs_lock_service="" #nfs_config="/etc/default/nfs-kernel-server" # Override for unit testing @@ -55,13 +55,13 @@ basic_stop () case "$1" in nfs) service "$nfs_service" stop - if [ -n "$nfslock_service" ] ; then - service "$nfslock_service" stop + if [ -n "$nfs_lock_service" ] ; then + service "$nfs_lock_service" stop fi ;; nfslock) - if [ -n "$nfslock_service" ] ; then - service "$nfslock_service" stop + if [ -n "$nfs_lock_service" ] ; then + service "$nfs_lock_service" stop else service "$nfs_service" stop fi @@ -75,14 +75,14 @@ basic_start () { case "$1" in nfs) - if [ -n "$nfslock_service" ] ; then - service "$nfslock_service" start + if [ -n "$nfs_lock_service" ] ; then + service "$nfs_lock_service" start fi service "$nfs_service" start ;; nfslock) - if [ -n "$nfslock_service" ] ; then - service "$nfslock_service" start + if [ -n "$nfs_lock_service" ] ; then + service "$nfs_lock_service" start else service "$nfs_service" start fi |