Execute the synchronizer client

Please make sure you have initialized the account and configured the BTC RPC node.

Please ensure that the keystore path is properly configured in the .env file by setting SYNCHRONIZER_KEYSTORE_FILE.

There are several methods to keep the Synchronizer client running long-term on a Linux server. Below are some commonly used methods.

Using pm2

PM2 is a process manager for Node.js applications on Linux, allowing you to easily manage, monitor, and keep applications running in the background. You could execute below command to run the Synchronizer client using pm2.

Please ensure that the password of the kesytore is properly configured in the .env file by setting SYNCHRONIZER_KEYSTORE_PASSWORD.

pm2 start ecosystem.config.js --only synchronizer

Using Screen, manully input password

The Screen command in Linux allows you to run commands in the background, keeping them active even after you disconnect from the terminal session.

You could execute below command to run the Synchronizer client , and manully input the password of the keystore. This approach helps prevent your password from appearing in plain text in configuration files or command lines, reducing the risk of password exposure.

screen -R synchronizer
yarn start-synchronizer
#input the password

Using Screen, password provided as parameter

You can start the Synchronizer Client using Screen, with the keystore password passed as a parameter in the command (e.g., password: 123456).

screen -R synchronizer
yarn start-synchronizer --pwd=123456

Or the password is saved in a file (e.g, /root/.exsat/synchronizer/password)

screen -R synchronizer
yarn start-synchronizer --pwdFile=/root/.exsat/synchronizer/password

Last updated