git.iko.soy/xmrig-bash-scripts
on master help sign in
Update start.sh
commite01cd6c66263544b9b12ddd7332683137d60a4ce authoriko <mail@iko.soy> dateTue 28 Mar 2023, 21:52 (4 years ago) parent766dfc7
1 file changed+13−13
start.sh+13−13
start.sh+13−13
@@ -25,19 +25,19 @@ echo "${_GREEN}MINING STARTED${_RESET}"
2525 # screen -ls
2626
2727# fi
28−echo "[Unit]" | tee /etc/systemd/system/xmrig.service
29−echo "Description=XMRIG service" | tee -a /etc/systemd/system/xmrig.service
30−echo "After=network.target" | tee -a /etc/systemd/system/xmrig.service
31−echo "StartLimitIntervalSec=0" | tee -a /etc/systemd/system/xmrig.service
32−echo "[Service]" | tee -a /etc/systemd/system/xmrig.service
33−echo "Type=simple" | tee -a /etc/systemd/system/xmrig.service
34−echo "Restart=always" | tee -a /etc/systemd/system/xmrig.service
35−echo "RestartSec=3" | tee -a /etc/systemd/system/xmrig.service
36−echo "User=root" | tee -a /etc/systemd/system/xmrig.service
37−echo "ExecStart=$(pwd)/xmrig --config=$_XMRIG_CONFIG_LOCATION" | tee -a /etc/systemd/system/xmrig.service
38−echo "" | tee -a /etc/systemd/system/xmrig.service
39−echo "[Install]" | tee -a /etc/systemd/system/xmrig.service
40−echo "WantedBy=multi-user.target" | tee -a /etc/systemd/system/xmrig.service
28+echo "[Unit]" | sudo tee /etc/systemd/system/xmrig.service
29+echo "Description=XMRIG service" | sudo tee -a /etc/systemd/system/xmrig.service
30+echo "After=network.target" | sudo tee -a /etc/systemd/system/xmrig.service
31+echo "StartLimitIntervalSec=0" | sudo tee -a /etc/systemd/system/xmrig.service
32+echo "[Service]" | sudo tee -a /etc/systemd/system/xmrig.service
33+echo "Type=simple" | sudo tee -a /etc/systemd/system/xmrig.service
34+echo "Restart=always" | sudo tee -a /etc/systemd/system/xmrig.service
35+echo "RestartSec=3" | sudo 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" | sudo tee -a /etc/systemd/system/xmrig.service
38+echo "" | sudo tee -a /etc/systemd/system/xmrig.service
39+echo "[Install]" | sudo tee -a /etc/systemd/system/xmrig.service
40+echo "WantedBy=multi-user.target" | sudo tee -a /etc/systemd/system/xmrig.service
4141
4242echo "STARTING XMRIG/SERVICES"
4343