]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ctdb-scripts: Do not use ctdb_service_reconfigure() for policy routing
authorMartin Schwenke <martin@meltin.net>
Tue, 6 Feb 2018 01:00:31 +0000 (12:00 +1100)
committerMartin Schwenke <martins@samba.org>
Thu, 1 Mar 2018 18:39:14 +0000 (19:39 +0100)
This is an unconditional reconfiguration so skip the unnecessary
logic.

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

index 4fff73b40e124afc6053593a57dd4473c2f5cd20..d8e02475dff75eb276ef1aeb685c732f4cbf9656 100755 (executable)
@@ -354,17 +354,6 @@ remove_bogus_routes ()
 
 ######################################################################
 
-service_reconfigure ()
-{
-    add_missing_routes "force"
-    remove_bogus_routes
-
-    # flush our route cache
-    set_proc sys/net/ipv4/route/flush 1
-}
-
-######################################################################
-
 ctdb_check_args "$@"
 
 case "$1" in
@@ -435,7 +424,13 @@ ipreallocated)
        ;;
 
 reconfigure)
-       ctdb_service_reconfigure
+       echo "Reconfiguring service \"${service_name}\"..."
+
+       add_missing_routes "force"
+       remove_bogus_routes
+
+       # flush our route cache
+       set_proc sys/net/ipv4/route/flush 1
        ;;
 esac