diff --git a/l2tpns.c b/l2tpns.c index 50fdc10..aa9f06f 100644 --- a/l2tpns.c +++ b/l2tpns.c @@ -4557,7 +4557,11 @@ static void mainloop(void) // Are we the master and shutting down?? if (config->cluster_iam_master) + { + if (*config->accounting_dir) + dump_acct_info(1); // Save counters so far before we leave cluster_heartbeat(); // Flush any queued changes.. + } // Ok. Notify everyone we're shutting down. If we're // the master, this will force an election.