-
Notifications
You must be signed in to change notification settings - Fork 194
Manual
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 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 on any command line to refresh the system information.
stratum command is used to start a specific algo on non dedicated coin port enabled servers.
stratum start | stop | restart algo
New algos that have been added since the creation of the stratum command file will need to be manually added to the file for them to work.
Do not confuse this with the YiiMP stratum file located in /home/crypto-data/yiimp/site/stratum
If you are using dedicated coin ports the addport command easily allows you to setup your new coins dedicated port, 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.
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 on your primary stratum server 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.
You will ONLY run addport on your first primary stratum server!! addport will create all the needed files on your additional stratum servers automatically.
The stratum.symbol command is used to easily start | stop | restart you dedicated 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