diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-04-06 15:51:09 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-04-06 20:21:46 -0400 |
| commit | e43716f670b4d5b0fd47a2712dcd3fb4d9a3be94 (patch) | |
| tree | 3d9dc03301f401c38dbeb30bae99ce2ea3e678cd /ospf6d/ospf6_interface.c | |
| parent | 1db63918b2478bc37b12aff584071085c51e6294 (diff) | |
vtysh: Add file locking to Quagga.conf
Problem:
Systemd runs in parallel all quagga daemons after zebra is started up.
Now each command has a ExecStartPost which executes vtysh -b -n.
Each of these vtysh -b -n would blask configuration to each daemon.
This leads to the situation where vtysh process #2 is blasting
in config that is at a different spot in the Quagga.conf file
that vtysh process #1 is at.
If #1 has put itself into a different submode that #2 is at,
we will get failures and the code will not be read in properly.
This problem is especially evident for when you have more than one
protocol running at one time.
Solution:
flock Quagga.conf.
If you don't get the flock, sleep for a while, try to get flock again
go to slepp...
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Reviewed-by: Daniel Walton <dwalton@cumulusnetworks.com>
Reviewed-by: Don Slice <dslice@cumulusnetworks.com>
Reviewed-by: DAve Olson <olson@cumulusnetworks.com>
Diffstat (limited to 'ospf6d/ospf6_interface.c')
0 files changed, 0 insertions, 0 deletions
