3echo "${_GREEN}MINING STARTED${_RESET}"
6# * run by crontab, load the settings
7# * run by install, do not load settings
9# Reload settings and functions for when running standalone
13# if ! screen -list | grep -q "$_XMRIG_SCREEN"; then
28echo "[Unit]" | sudo tee /etc/systemd/system/xmrig.service
29echo "Description=XMRIG service" | sudo tee -a /etc/systemd/system/xmrig.service
30echo "After=network.target" | sudo tee -a /etc/systemd/system/xmrig.service
31echo "StartLimitIntervalSec=0" | sudo tee -a /etc/systemd/system/xmrig.service
32echo "[Service]" | sudo tee -a /etc/systemd/system/xmrig.service
33echo "Type=simple" | sudo tee -a /etc/systemd/system/xmrig.service
34echo "Restart=always" | sudo tee -a /etc/systemd/system/xmrig.service
35echo "RestartSec=3" | sudo tee -a /etc/systemd/system/xmrig.service
36echo "User=root" | sudo tee -a /etc/systemd/system/xmrig.service
37echo "ExecStart=$_XMRIG_BUILD_LOCATION/xmrig --config=$_XMRIG_CONFIG_LOCATION" | sudo tee -a /etc/systemd/system/xmrig.service
38echo "" | sudo tee -a /etc/systemd/system/xmrig.service
39echo "[Install]" | sudo tee -a /etc/systemd/system/xmrig.service
40echo "WantedBy=multi-user.target" | sudo tee -a /etc/systemd/system/xmrig.service
42echo "STARTING XMRIG/SERVICES"
44sudo service logrotate start
46sudo service xmrig start
48echo "STARTING XMRIG/SERVICES @ BOOT"
50sudo systemctl enable logrotate
51sudo systemctl enable ntp
52sudo systemctl enable xmrig
54echo "${_CYAN}MINING RUNNING${_RESET}"
55echo "${_YELLOW} The process is running in a screen session."
56echo "${_YELLOW} The screen session is named:${_RESET} $_XMRIG_SCREEN"
57echo "${_YELLOW} Command to view process:${_RESET} screen -r $_XMRIG_SCREEN"
58echo "${_MAGENTA} ENJOY!!!${_RESET}"
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list