FAQ
MyTonCtrl directory usage
MyTonCtrl is a wrapper that stores its files in two locations:
~/.local/share/mytonctrl/
: Long-term files such as logs are stored here./tmp/mytonctrl/
: Temporary files are stored here.
MyTonCtrl includes another script called mytoncore
, which stores files in the following locations:
~/.local/share/mytoncore/
: Permanent files, the main configuration will be stored here./tmp/mytoncore/
: Temporary files and parameters used for elections will be saved here.
MyTonCtrl downloads its source code, along with the validator, into the following directories:
/usr/src/mytonctrl/
/usr/src/ton/
MyTonCtrl compiles the validator components into the following directory:
/usr/bin/ton/
MyTonCtrl creates a working directory for the validator here:
/var/ton/
If MyTonCtrl was installed as root
The configurations will be stored differently:
/usr/local/bin/mytonctrl/
/usr/local/bin/mytoncore/
How to remove MyTonCtrl
Run the script as an administrator and remove the compiled TON components:
sudo bash /usr/src/mytonctrl/scripts/uninstall.sh
sudo rm -rf /usr/bin/ton
Ensure you have the necessary permissions to delete or modify files and directories.
Directory changes with MyTonCtrl
Changing validator working directory pre-installation
If you want to change the working directory of the validator before installation, you have two options:
-
Fork the project: You can fork the project and make your modifications there. To learn how to fork a project, use the command
man git-fork
. -
Create a symbolic link: Alternatively, you can create a symbolic link with the following command:
ln -s /opt/ton/var/ton /var/ton
This command will create a link at /var/ton
that points to /opt/ton
.
Changing validator working directory post-installation
To change the working directory of the validator from /var/ton/
after installation, follow these steps:
-
Stop services: First, stop the services using the following commands:
systemctl stop validator.service
systemctl stop mytoncore.service -
Move validator files: Next, move the validator files with this command:
mv /var/ton/* /opt/ton/
-
Update configuration paths: Ensure you update the paths in the configuration file located at
~/.local/share/mytoncore/mytoncore.db
. -
Consider experience: Note that there might be limited experience with this type of transfer, so take this into account as you proceed.
Make sure you have sufficient permissions to execute these commands and make these changes.
Understanding validator status and restarting validator in MyTonCtrl
This document will help you confirm if MyTonCtrl has become a full validator.
Restarting your validator
If you need to restart your validator, run this command:
systemctl restart validator.service
Please ensure you have the necessary permissions to execute these commands and make any needed adjustments. Remember to back up important data before performing operations that may affect your validator.