Management & Monitoring
This section is designed to gather steps for managing the different services around the xcash-dpops program, getting logs and monitoring the activity.
Managing Installation
You can manage your program installation with the installer script:
bash -c "$(curl -sSL https://raw.githubusercontent.com/X-CASH-official/xcash-dpops/master/scripts/autoinstaller/autoinstaller.sh)"
The installation script enables you to install and manage your xcash-dpops program easily.
Restart Program
If you have an issue with your program running, or need to do some changes in the settings and need to restart the different program, it is recommended to restart the service using the installer script.
Run the installer script and choose option 12.
Update program
When a new update of the program is pushed, you will need to a update your program.
Run the installer script and choose option 2.
Change delegate mode
To change your settings from a solo to a shared delegate (and vice versa), you can run the installer script and choose option 9, or change the settings (fees and minimum payout) with option 10.
You will be asked to input a delegate fee and a minimum payout amount to your voters. The script will automatically change the program settings to match your changes.
Don't forget to update your delegate fee by updating the public information as well.
Back up your local database
As a shared delegated, you will have the responsability to distribute the payout to your voters. The voters information and shares are stored locally into your delegate node database. Before attempting to update your node, or do maintenance on your server, it is highly recommended to backup this information.
To backup your shared delegate database, chose option 19:
Recover mode
To be added.
allows you to change your public_address or VRF key must be using a domain name with delegate add txt record, value @ data is xcash-dpops:MYNEWPUBLICKEY or xcash-dpops:MYNEWVRFKEY you can do 1 or both at the same time does not matter then open ANY wallet (does not need to be the delegate wallet in case you lost it) and type delegate_recover mydomain, and it will do everything for you.
systemd services
systemd is generally used to manage low-level programs in Linux-based systems. It's a reliable way to automatically run programs on startup, and manage and monitor the different services.
In systemd, a unit refers to any resource that the system knows how to operate on and manage. This is the primary object that the systemd tools know how to deal with. These resources are defined using configuration files called unit files. Whether you installed with the autoinstaller script or manually, the programs needed to run the X-Cash consensus are managed in systemd with unit files.
The different services needed for the X-Cash consensus running on the server are listed below:
Services Management
At some point, you might have to need to restart or check the status of the services, either to reflect a change you have made, to update, or to run the program with different parameters.
To start a systemd service, run:
Example:
To restart a systemd service, run:
Example:
To stop a systemd service, run:
Example:
To check the status of a systemd service, run:
Example:
Output:
Monitoring & Logging
While the services are running in the background, you might want to check the outputs of the different programs.
To monitor the services, we are using journalctl which fetch the journal of the systemd services. Using journalctl without paramaters will show the full contents of the journal, starting with the oldest entry collected.
For a live logging with better readability, we will limit the output by using the following parameters:
To check the xcash-dpops services, you can copy the following commands:
Login service checking
We can change the motd generated when we login to our server to make it show us basic node information like the service status, our balance and blockchain syncronization status
Optionally, we can to disable all the automatic scripts executed when we log in and only enable ours.
We need to place our script in the update-motd.d directory, we will name it 00-xcash-node-checks and put our script inside
Then, we need to make it executable
After that, every time we log in to our server by ssh we will see something like this.

Last updated