#StackBounty: #networking #wireless #bash #network-manager How to reset network manager without downtime?

Bounty: 50

I have an unstable WiFi connection, and the bandwidth frequently reaches 0 without actual disconnection (it is connected but without data transfer). Resetting the network manager by

sudo service network-manager restart

perfectly fixes the problem. However, I have two issues:

  1. How can I reset the network manager without a downtime? With the above command, any ongoing download will be interrupted. Is it possible to keep the current connection while resetting?
  2. How can I write a bash script to periodically check the network connection and reset it if there is no data transfer?

I use Ubuntu 20.04.

Get this bounty!!!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.