1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

ctdb-scripts: Support NFS on RHEL7 with systemd

Need to be able to recognise a RHEL system.  Still use "system" to
start and stop service, since that still works and yields the smallest
change.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
Martin Schwenke 2014-06-26 10:36:17 +10:00 committed by Amitay Isaacs
parent 1dddf6c24a
commit 61b1fdec2f

View File

@ -681,7 +681,8 @@ startstop_nfs() {
[ -x $CTDB_ETCDIR/init.d/nfsserver ] && {
PLATFORM="sles"
}
[ -x $CTDB_ETCDIR/init.d/nfslock ] && {
[ -x $CTDB_ETCDIR/init.d/nfslock -o \
-r /usr/lib/systemd/system/nfs-lock.service ] && {
PLATFORM="rhel"
}
@ -761,7 +762,8 @@ startstop_nfslock() {
[ -x $CTDB_ETCDIR/init.d/nfsserver ] && {
PLATFORM="sles"
}
[ -x $CTDB_ETCDIR/init.d/nfslock ] && {
[ -x $CTDB_ETCDIR/init.d/nfslock -o \
-r /usr/lib/systemd/system/nfs-lock.service ] && {
PLATFORM="rhel"
}