ctdb-scripts: Implement registration in nfs-linux-kernel-callout
authorMartin Schwenke <martin@meltin.net>
Tue, 14 Jul 2015 02:13:58 +0000 (12:13 +1000)
committerAmitay Isaacs <amitay@samba.org>
Tue, 14 Jul 2015 07:57:18 +0000 (09:57 +0200)
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/config/nfs-linux-kernel-callout

index 31810d0f7d4eecb1f563be1db57770b104891932..5e770317679633f22b1fa07321cce7e73a10bbdf 100755 (executable)
@@ -178,6 +178,20 @@ nfs_monitor_list_shares ()
 
 ##################################################
 
+nfs_register ()
+{
+    cat <<EOF
+shutdown
+startup
+stop
+start
+monitor-list-shares
+monitor-post
+EOF
+}
+
+##################################################
+
 case "$1" in
     shutdown)
        nfs_shutdown
@@ -198,7 +212,7 @@ case "$1" in
        nfs_check_thread_count
        ;;
     register)
-       : # Nothing yet
+       nfs_register
        ;;
     monitor-pre|releaseip|takeip)
        # Not required/implemented