openvswitch: close flock fd when starting openvswitch services
authorFelix Fietkau <redacted>
Tue, 20 Jul 2021 12:26:54 +0000 (14:26 +0200)
committerFelix Fietkau <redacted>
Tue, 20 Jul 2021 12:26:55 +0000 (14:26 +0200)
Fixes deadlock with multiple init script calls

Signed-off-by: Felix Fietkau <redacted>
net/openvswitch/files/openvswitch.init

index 0789021c374cf62385a4f60adfa058468d326018..23b75c38f72c7ec2e92ca7c60bf8eeecb2e5dbc8 100755 (executable)
@@ -82,7 +82,7 @@ ovs_xx() {
        case "$cfgtype" in
                ovs)
                        "$ovs_ctl" "$action" \
-                               --system-id=random
+                               --system-id=random 1000>&-
                        ;;
                ovn_*)
                        "$ovn_ctl" "${action}_${cfgtype#ovn_}"
git clone https://git.99rst.org/PROJECT