Add the working details of the Reconnect-Peers function under point number 18

Add the working details of the Reconnect-Peers function under point number 18.
This commit is contained in:
CryptoBureau 2024-12-06 15:36:29 +01:00
parent 114e66bb71
commit af755d3814

View File

@ -149,16 +149,40 @@ The script provides an interactive menu with the following options:
17. **Stop-Service** 17. **Stop-Service**
Stops the running Ghost node service. Stops the running Ghost node service.
18. **Restart-Service** 18. **Reconnect-Peers**
The Reconnect-Peers function is designed to restart and reconfigure the Ghost node by performing the following steps:
- Stops the Ghost node service.
- Cleans up old data and ensures the necessary folder structure exists.
- Updates the Ghost node software by switching to the main branch and pulling the latest changes.
- Starting the setup process
- Make Global Rebuild GHOST Node type y: User must type **y**
- Rebuilds and reinitializes the node with updated configurations.
- Setting unit file arguments
- Prompts the user during execution:
- **Disable bootnode mode [y/N]**: User must type **y** to disable the bootnode mode.
- **Boot node address**: User will be prompted to paste the following address:
```bash
/dns/bootnode69.chain.ghostchain.io/tcp/30334/p2p/12D3KooWF9SWxz9dmy6vfndQhoxqCa7PESaoFWEiF8Jkqh4xKDRf
```
- Restarts the node service and checks for key integrations.
- Ensures the node is running correctly by validating the setup and enabling the service.
This function is essential for maintaining the node's connectivity and ensuring it's updated and operational.
19. **Restart-Service**
Restarts the Ghost node service for applying changes. Restarts the Ghost node service for applying changes.
19. **Status-Checker** 20. **Status-Checker**
Checks the status of the Ghost node service. Checks the status of the Ghost node service.
20. **Logs-Checker** 21. **Logs-Checker**
Displays the latest logs to monitor the Ghost node's performance or troubleshoot issues. Displays the latest logs to monitor the Ghost node's performance or troubleshoot issues.
21. **Exit** 22. **Exit**
Exits the script and ends the session. Exits the script and ends the session.