Skip to content
cryptopool.builders edited this page Jun 24, 2019 · 32 revisions

There are many custom written commands to make your life a bit easier. Make sure you learn them and how to properly use them.

sudo

sudo does NOT need to be used on any commands YiiMP related or for any coin daemon commands.

The ONLY time you will use sudo is for direct system commands such as,

sudo apt-get update, sudo apt-get upgrade, sudo reboot, sudo nano filename, copying any files to /usr/bin, etc

motd

type motd on any command line to refresh the system information.

addport

If you are using dedicated coin ports the addport command easily allows you to setup your new coins dedicated port and stratum config and screen start files.

You will first be asked for the coins symbol, this MUST be entered in all UPPER case.

You will then be asked for the coins algo, the MUST be entered in all lower case. It also has to match exactly the way the algos stratum.conf is in YiiMP. For example the stratum.conf for sha256 is sha and not sha256. So you would enter sha.

Once you enter those two bits of information, addport will randomly select an open port between ports 2768 through 6999. It will create the new stratum.config as symbol.algo.conf (btc.sha.conf) in the /home/crypto-data/yiimp/site/stratum/config directory.

It will also create a new file called stratum.symbol (stratum.btc) in the same directory and also in /usr/bin. A new cron job will also be created to start your coins stratum at server boot.

addport will automatically start the new stratum once it is created.

addport multiple stratums

If you have setup multiple stratum servers, then you will really love addport! You will need to do the following steps to get it setup fully.

Run these commands to get it setup:

sudo mv /usr/bin/addport /usr/bin/addport.single

sudo mv /usr/bin/addport.multi /usr/bin/addport

sudo nano /usr/bin/addport

and add your server login credentials for each of your stratum servers. The file is setup with a total of three stratum servers. If you are adding more then that additional edits will be needed. These edit can be found in the addport file itself.

stratum.symbol

The stratum.symbol is the new internal command to easily start | stop | restart you coin stratum screen.

Usage for the command is:

stratum.symbol start | stop | restart symbol

So for example BTC would be:

startum.btc start btc

From there you can use screen -r btc to view the stratum screen for that coin. Remember

Clone this wiki locally