ctdb-scripts: Move NFS callout-related code to functions file
authorMartin Schwenke <martin@meltin.net>
Mon, 6 Jun 2016 03:56:55 +0000 (13:56 +1000)
committerAmitay Isaacs <amitay@samba.org>
Wed, 8 Jun 2016 08:33:19 +0000 (10:33 +0200)
commit6096233919528e2337fa9d3269caaf0a86becf9b
treee6515f0e29c17e922c0d6b93405ab91dae8dfa9e
parent6888c172d3f2ed471fac626ee9a50bb092367054
ctdb-scripts: Move NFS callout-related code to functions file

A second NFS eventscript may be required, so make this code available
to it.

The initialisation code can't be evaluated in the functions file
because service_state_dir isn't yet setup, so put it in a function and
call it with other initialisation code.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/config/events.d/60.nfs
ctdb/config/functions