git.iko.soy/xmrig-bash-scripts
on master help sign in
2 files changed+1−8
since splitsnapshots
unifiedsplit
install.sh−7 start.sh+1−1
install.sh−7
@@ -30,34 +30,27 @@ fi
3030
3131# Load functions
3232. functions.sh
33−sleep 5
3433
3534# Get settings
3635. settings.sh
37−sleep 5
3836
3937# Update system
4038. maintenance.sh
41−sleep 5
4239
4340# Install dependencies
4441. depends.sh
45−sleep 5
4642
4743# User input
4844. input.sh
49−sleep 5
5045
5146# Stop running instance
5247. stop.sh
5348
5449# Get source and build by sourcing our build file
5550. build.sh
56−sleep 5
5751
5852# Create a config.json
5953. config.sh
60−sleep 5
6154
6255# Unset REPO variable so start script will execute program
6356SCREEN=""
start.sh+1−1
@@ -34,7 +34,7 @@ echo "Type=simple" | sudo tee -a /etc/systemd/system/xmrig.service
3434echo "Restart=always" | sudo tee -a /etc/systemd/system/xmrig.service
3535echo "RestartSec=3" | sudo tee -a /etc/systemd/system/xmrig.service
3636echo "User=root" | sudo tee -a /etc/systemd/system/xmrig.service
37−echo "ExecStart=$(pwd)/xmrig --config=$_XMRIG_CONFIG_LOCATION" | sudo 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
3838echo "" | sudo tee -a /etc/systemd/system/xmrig.service
3939echo "[Install]" | sudo tee -a /etc/systemd/system/xmrig.service
4040echo "WantedBy=multi-user.target" | sudo tee -a /etc/systemd/system/xmrig.service