diff options
author | Daniil Baturin <daniil@vyos.io> | 2021-07-13 07:13:06 -0500 |
---|---|---|
committer | Daniil Baturin <daniil@vyos.io> | 2021-07-13 07:13:06 -0500 |
commit | 8e5d635a3c060c00e1828d2ea7a15487cae56468 (patch) | |
tree | 75739feaeb44bd8b1f6cbe88fe1f1c41ba42f1b6 | |
parent | 4914f140d97749dd1009bdc78a201f27b452bee1 (diff) | |
download | vyos-1x-8e5d635a3c060c00e1828d2ea7a15487cae56468.tar.gz vyos-1x-8e5d635a3c060c00e1828d2ea7a15487cae56468.zip |
T3663: fixed in the inotify-based vrrp script.
-rw-r--r-- | python/vyos/ifconfig/vrrp.py | 3 |
1 files changed, 1 insertions, 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) |