From 8e5d635a3c060c00e1828d2ea7a15487cae56468 Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Tue, 13 Jul 2021 07:13:06 -0500 Subject: T3663: fixed in the inotify-based vrrp script. --- python/vyos/ifconfig/vrrp.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/python/vyos/ifconfig/vrrp.py b/python/vyos/ifconfig/vrrp.py index 4259060a2..b522cc1ab 100644 --- a/python/vyos/ifconfig/vrrp.py +++ b/python/vyos/ifconfig/vrrp.py @@ -92,8 +92,7 @@ class VRRP(object): try: # send signal to generate the configuration file pid = util.read_file(cls.location['pid']) - os.kill(int(pid), cls._signal[what]) - util.wait_for_file_write_complete(vyos.keepalived.json_file, + util.wait_for_file_write_complete(fname, pre_hook=(lambda: os.kill(int(pid), cls._signal[what])), timeout=30) -- cgit v1.2.3