mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
eventscript: Use of $NFS_TICKLE_SHARED_DIRECTORY must be after loadconfig.
Proper fix for 085d1bea78fabf754ef6dd6d323f74a1d361e45c's workaround. $NFS_TICKLE_SHARED_DIRECTORY was being used before it is set via loadconfig. Ronnie actually spotted this one. :-) Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit ee8b2e298351d05197a2e1494f3331433644c1e6)
This commit is contained in:
parent
02e68340e8
commit
407a8f7205
@ -3,14 +3,13 @@
|
||||
|
||||
. $CTDB_BASE/functions
|
||||
|
||||
. /etc/sysconfig/nfs
|
||||
|
||||
service_name="nfs"
|
||||
service_start="mkdir -p $CTDB_BASE/state/nfstickle;mkdir -p $NFS_TICKLE_SHARED_DIRECTORY/`hostname`;echo 1 > /proc/sys/net/ipv4/tcp_tw_recycle"
|
||||
service_reconfigure=$service_start
|
||||
|
||||
loadconfig
|
||||
|
||||
service_start="mkdir -p $CTDB_BASE/state/nfstickle;mkdir -p $NFS_TICKLE_SHARED_DIRECTORY/`hostname`;echo 1 > /proc/sys/net/ipv4/tcp_tw_recycle"
|
||||
service_reconfigure=$service_start
|
||||
|
||||
ctdb_start_stop_service
|
||||
|
||||
[ -z "$NFS_TICKLE_SHARED_DIRECTORY" ] && exit 0
|
||||
|
Loading…
Reference in New Issue
Block a user