eventscripts: Fix statd-callout update handling
authorMartin Schwenke <martin@meltin.net>
Tue, 28 May 2013 02:01:57 +0000 (12:01 +1000)
committerMartin Schwenke <martin@meltin.net>
Tue, 28 May 2013 06:11:47 +0000 (16:11 +1000)
commit1b5968f6be084590667f4f15ff3bef13ed9a2973
tree7252cdf7bf59d836b9c3a8df6cb8ab09ea083b53
parent25a6fd784cde96f3d20a79f70b5589b5c4aca675
eventscripts: Fix statd-callout update handling

60.nfs and 60.ganesha touch $statd_update_trigger every time they're
run.  This stops the statd-callout updates from ever being called.

Make this logic self-contained and move it to new function
nfs_statd_update() in the functions file.  Call this in 60.nfs and
60.ganesha with the appropriate update period as the only argument.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reported-by: Poornima Gupte <poornima.gupte@in.ibm.com>
config/events.d/60.ganesha
config/events.d/60.nfs
config/functions