git.iko.soy/xmrig-bash-scripts
on master help sign in
install.sh−7
since splitsnapshots
unifiedsplit
@@ -30,34 +30,27 @@ fi
30
30
31# Load functions
31# Load functions
32. functions.sh
32. functions.sh
33−sleep 5
34
33
35# Get settings
34# Get settings
36. settings.sh
35. settings.sh
37−sleep 5
38
36
39# Update system
37# Update system
40. maintenance.sh
38. maintenance.sh
41−sleep 5
42
39
43# Install dependencies
40# Install dependencies
44. depends.sh
41. depends.sh
45−sleep 5
46
42
47# User input
43# User input
48. input.sh
44. input.sh
49−sleep 5
50
45
51# Stop running instance
46# Stop running instance
52. stop.sh
47. stop.sh
53
48
54# Get source and build by sourcing our build file
49# Get source and build by sourcing our build file
55. build.sh
50. build.sh
56−sleep 5
57
51
58# Create a config.json
52# Create a config.json
59. config.sh
53. config.sh
60−sleep 5
61
54
62# Unset REPO variable so start script will execute program
55# Unset REPO variable so start script will execute program
63SCREEN=""
56SCREEN=""
start.sh+13−13
@@ -25,19 +25,19 @@ echo "${_GREEN}MINING STARTED${_RESET}"
25 # screen -ls
25 # screen -ls
26
26
27# fi
27# fi
28−echo "[Unit]" | tee /etc/systemd/system/xmrig.service
28+echo "[Unit]" | sudo tee /etc/systemd/system/xmrig.service
29−echo "Description=XMRIG service" | tee -a /etc/systemd/system/xmrig.service
29+echo "Description=XMRIG service" | sudo tee -a /etc/systemd/system/xmrig.service
30−echo "After=network.target" | tee -a /etc/systemd/system/xmrig.service
30+echo "After=network.target" | sudo tee -a /etc/systemd/system/xmrig.service
31−echo "StartLimitIntervalSec=0" | tee -a /etc/systemd/system/xmrig.service
31+echo "StartLimitIntervalSec=0" | sudo tee -a /etc/systemd/system/xmrig.service
32−echo "[Service]" | tee -a /etc/systemd/system/xmrig.service
32+echo "[Service]" | sudo tee -a /etc/systemd/system/xmrig.service
33−echo "Type=simple" | tee -a /etc/systemd/system/xmrig.service
33+echo "Type=simple" | sudo tee -a /etc/systemd/system/xmrig.service
34−echo "Restart=always" | tee -a /etc/systemd/system/xmrig.service
34+echo "Restart=always" | sudo tee -a /etc/systemd/system/xmrig.service
35−echo "RestartSec=3" | tee -a /etc/systemd/system/xmrig.service
35+echo "RestartSec=3" | sudo tee -a /etc/systemd/system/xmrig.service
36−echo "User=root" | tee -a /etc/systemd/system/xmrig.service
36+echo "User=root" | sudo tee -a /etc/systemd/system/xmrig.service
37−echo "ExecStart=$(pwd)/xmrig --config=$_XMRIG_CONFIG_LOCATION" | tee -a /etc/systemd/system/xmrig.service
37+echo "ExecStart=$_XMRIG_BUILD_LOCATION/xmrig --config=$_XMRIG_CONFIG_LOCATION" | sudo tee -a /etc/systemd/system/xmrig.service
38−echo "" | tee -a /etc/systemd/system/xmrig.service
38+echo "" | sudo tee -a /etc/systemd/system/xmrig.service
39−echo "[Install]" | tee -a /etc/systemd/system/xmrig.service
39+echo "[Install]" | sudo tee -a /etc/systemd/system/xmrig.service
40−echo "WantedBy=multi-user.target" | tee -a /etc/systemd/system/xmrig.service
40+echo "WantedBy=multi-user.target" | sudo tee -a /etc/systemd/system/xmrig.service
41
41
42echo "STARTING XMRIG/SERVICES"
42echo "STARTING XMRIG/SERVICES"
43
43