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:
parent
1dddf6c24a
commit
61b1fdec2f
@ -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"
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user