Shell script to monitor NetworkManager service and restart it if it goes down . This Bash script monitors the NetworkManager service on a linux system and restarts it if it's not running.
-
Make sure the script is executable : ```bash
chmod +x nt.sh
-
Run the script: ```bash
./nt.sh
The script will continuously check the status of the NetworkManager service and restart it if necessary.
- Bash shell
systemctl
command