mirror of
https://github.com/samba-team/samba.git
synced 2025-01-21 18:04:06 +03:00
ctdb-scripts: Remove unnecessary 06.nfs.script
Signed-off-by: Vinit Agnihotri <vagnihotri@ddn.com> Signed-off-by: Martin Schwenke <mschwenke@ddn.com> Reviewed-by: Volker Lendecke <vl@samba.org>
This commit is contained in:
parent
e3294e5526
commit
2de2d5dd20
@ -1,39 +0,0 @@
|
||||
#!/bin/sh
|
||||
# script to manage nfs in a clustered environment
|
||||
|
||||
[ -n "$CTDB_BASE" ] || \
|
||||
CTDB_BASE=$(d=$(dirname "$0") && cd -P "$d" && dirname "$PWD")
|
||||
|
||||
. "${CTDB_BASE}/functions"
|
||||
|
||||
service_name="nfs"
|
||||
|
||||
load_script_options "service" "60.nfs"
|
||||
|
||||
ctdb_setup_state_dir "service" "$service_name"
|
||||
|
||||
######################################################################
|
||||
|
||||
nfs_callout_pre ()
|
||||
{
|
||||
_event="$1"
|
||||
shift
|
||||
|
||||
nfs_callout "${_event}-pre" "$@"
|
||||
}
|
||||
|
||||
######################################################################
|
||||
|
||||
# script_state_dir set by ctdb_setup_state_dir()
|
||||
# shellcheck disable=SC2154
|
||||
nfs_callout_init "$script_state_dir"
|
||||
|
||||
case "$1" in
|
||||
takeip)
|
||||
nfs_callout_pre "$@"
|
||||
;;
|
||||
|
||||
releaseip)
|
||||
nfs_callout_pre "$@"
|
||||
;;
|
||||
esac
|
@ -758,8 +758,7 @@ CTDB_PER_IP_ROUTING_TABLE_ID_HIGH=9000
|
||||
<title>60.nfs</title>
|
||||
|
||||
<para>
|
||||
This event script (along with 06.nfs) provides CTDB's NFS
|
||||
service management.
|
||||
This event script provides CTDB's NFS service management.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
|
@ -656,7 +656,6 @@ Interface[2]: Name:eth5 Link:up References:2 (active)
|
||||
00.ctdb OK 0.014 Sat Dec 17 19:39:11 2016
|
||||
01.reclock OK 0.013 Sat Dec 17 19:39:11 2016
|
||||
05.system OK 0.029 Sat Dec 17 19:39:11 2016
|
||||
06.nfs OK 0.014 Sat Dec 17 19:39:11 2016
|
||||
10.interface OK 0.037 Sat Dec 17 19:39:11 2016
|
||||
11.natgw OK 0.011 Sat Dec 17 19:39:11 2016
|
||||
11.routing OK 0.007 Sat Dec 17 19:39:11 2016
|
||||
@ -680,7 +679,6 @@ Interface[2]: Name:eth5 Link:up References:2 (active)
|
||||
00.ctdb OK 0.011 Sat Dec 17 19:40:46 2016
|
||||
01.reclock OK 0.010 Sat Dec 17 19:40:46 2016
|
||||
05.system OK 0.030 Sat Dec 17 19:40:46 2016
|
||||
06.nfs OK 0.014 Sat Dec 17 19:40:46 2016
|
||||
10.interface OK 0.041 Sat Dec 17 19:40:46 2016
|
||||
11.natgw OK 0.008 Sat Dec 17 19:40:46 2016
|
||||
11.routing OK 0.007 Sat Dec 17 19:40:46 2016
|
||||
@ -717,7 +715,6 @@ Interface[2]: Name:eth5 Link:up References:2 (active)
|
||||
* 00.ctdb
|
||||
* 01.reclock
|
||||
* 05.system
|
||||
* 06.nfs
|
||||
* 10.interface
|
||||
11.natgw
|
||||
11.routing
|
||||
|
@ -1,12 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
. "${TEST_SCRIPTS_DIR}/unit.sh"
|
||||
|
||||
define_test "callout succeeds"
|
||||
|
||||
setup
|
||||
|
||||
setup_nfs_callout
|
||||
|
||||
ok_null
|
||||
simple_test
|
@ -1,12 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
. "${TEST_SCRIPTS_DIR}/unit.sh"
|
||||
|
||||
define_test "callout causes releaseip-pre to fail"
|
||||
|
||||
setup
|
||||
|
||||
setup_nfs_callout "releaseip-pre"
|
||||
|
||||
required_result 1 "releaseip-pre"
|
||||
simple_test
|
@ -1,12 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
. "${TEST_SCRIPTS_DIR}/unit.sh"
|
||||
|
||||
define_test "callout succeeds"
|
||||
|
||||
setup
|
||||
|
||||
setup_nfs_callout
|
||||
|
||||
ok_null
|
||||
simple_test
|
@ -1,12 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
. "${TEST_SCRIPTS_DIR}/unit.sh"
|
||||
|
||||
define_test "callout causes takeip-pre to fail"
|
||||
|
||||
setup
|
||||
|
||||
setup_nfs_callout "takeip-pre"
|
||||
|
||||
required_result 1 "takeip-pre"
|
||||
simple_test
|
@ -1,4 +0,0 @@
|
||||
setup()
|
||||
{
|
||||
:
|
||||
}
|
@ -7,7 +7,6 @@
|
||||
_ctdb_enable_cluster_test_event_scripts ()
|
||||
{
|
||||
local scripts="
|
||||
06.nfs
|
||||
10.interface
|
||||
49.winbind
|
||||
50.samba
|
||||
|
Loading…
x
Reference in New Issue
Block a user