diff options
author | Martin Schwenke <martin@meltin.net> | 2019-03-20 17:45:10 +1100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2019-04-12 07:57:11 +0000 |
commit | aee71ea6863c45467b3e897ce8f5c093d88b8020 (patch) | |
tree | 28c2151dff9ece24756c914616298d3e91a31dd8 /ctdb | |
parent | 7932032de40129e43cb5815ee747c41ebdecb07c (diff) | |
download | samba-aee71ea6863c45467b3e897ce8f5c093d88b8020.tar.gz |
ctdb-scripts: Add systemd services to NFS call-out
At least Red Hat and Debian appear to use (a variant of?) the upstream
systemd units for NFS, so adding support for these services is
relatively easy. Distributions using Sys-V init can patch the
call-out to use the relevant Sys-V init services.
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>
(cherry picked from commit a8fafd377ff0cb07ab161e437c5fe024704345eb)
Diffstat (limited to 'ctdb')
-rwxr-xr-x | ctdb/config/nfs-linux-kernel-callout | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/ctdb/config/nfs-linux-kernel-callout b/ctdb/config/nfs-linux-kernel-callout index ae1e4d5a7af..3d1dc63c590 100755 --- a/ctdb/config/nfs-linux-kernel-callout +++ b/ctdb/config/nfs-linux-kernel-callout @@ -17,6 +17,29 @@ nfs_exports_file="${CTDB_NFS_EXPORTS_FILE:-/var/lib/nfs/etab}" nfs_distro_style="${CTDB_NFS_DISTRO_STYLE:-sysvinit-redhat}" case "$nfs_distro_style" in +systemd-*) + # Defaults + nfs_service="nfs-server" + nfs_lock_service="rpc-statd" + nfs_mountd_service="nfs-mountd" + nfs_status_service="rpc-statd" + nfs_rquotad_service="rpc-rquotad" + nfs_config="/etc/sysconfig/nfs" + nfs_rquotad_config="" # Not use with systemd, restart via service + + case "$nfs_distro_style" in + *-redhat|*-suse) + : # Defaults only + ;; + *-debian) + nfs_rquotad_service="quotarpc" + ;; + *) + echo "Internal error" + exit 1 + esac + ;; + sysvinit-*) # Defaults nfs_service="nfs" |