-
Notifications
You must be signed in to change notification settings - Fork 192
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.
Do NOT use sudo on any commands YiiMP related or for any coin daemon commands! All of these commands are ran under your user account. This includes using the yiimp cli and starting, stopping, or running other cli commands for coin daemons.
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
I know on the other installer it has you use sudo for just about everything. And that's because the person that cloned it from the original crombie crunch version is an idiot and changed a bunch of stuff that they shouldn't have touched.
The directory structure for servers setup by multipool is radically different then vanilla YiiMP servers. Take time to learn the new directory structure to prevent issues and headaches.
For YiiMP Single Server:
Directory | Files |
---|---|
/home/crypto-data/yiimp | General install location for YiiMP |
/home/crypto-data/yiimp/starts | screens and stratum sh files - you do not need to run these |
/home/crypto-data/yiimp/site | - |
/home/crypto-data/yiimp/site/web | New location for YiiMP web files |
/home/crypto-data/yiimp/site/backup | backup location for mysql DB |
/home/crypto-data/yiimp/site/configuration | New location of your serverconfig.php |
/home/crypto-data/yiimp/site/crons | New location of the main:blocks:loop2 sh files |
/home/crypto-data/yiimp/site/log | New location for debug.log and your nginx server log |
/home/crypto-data/yiimp/site/stratum | New location for your stratum files |
/home/crypto-data/wallets | New location for wallets |
For YiiMP Multi Server:
Directory | Files | Server |
---|---|---|
/home/crypto-data/yiimp | General install location for YiiMP | All |
/home/crypto-data/yiimp/starts | screens and stratum sh files - you do not need to run these | Web and Stratum |
/home/crypto-data/yiimp/site | - | Web and Stratum |
/home/crypto-data/yiimp/site/web | New location for YiiMP web files | Web |
/home/crypto-data/yiimp/site/backup | backup location for mysql DB | Web |
/home/crypto-data/yiimp/site/configuration | New location of your serverconfig.php | Web |
/home/crypto-data/yiimp/site/crons | New location of the main:blocks:loop2 sh files |
Web |
/home/crypto-data/yiimp/site/log | New location for debug.log and your nginx server log | Web |
/home/crypto-data/yiimp/site/stratum | New location for your stratum files | Stratum |
/home/crypto-data/wallets | New location for wallets | Daemon |
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 as well as open the port in the firewall.
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.
daemonbuilder is the quickest and easiest way to build most coin daemons on your pool. With daemonbuilder you can add a new coin daemon, upgrade an existing coin, and if you run in to any of the most common build errors, you can easily correct them.
daemonbuilder needs to be installed prior to running. To install run multipool on your daemon server and select daemonbuilder from the install list.
I know I have mentioned this before but it is extremely important that you do NOT add things like libdb4.8 to the system. Servers built with multipool use custom builds and adding things in like libdb4.8 will break your server.
makefaucet command is used to setup and add coin faucets to your pool. makefaucet is ran on your DB server. At this time the faucet system is a paid add-on.
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
The stratum.symbol command is used to easily start | stop | restart your dedicated coin stratum screen and only used with servers built with dedicated coin ports enabled.
- This command is created automatically when you run addport!
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.