This commit is contained in:
iko 2023-03-28 22:12:47 +03:00
parent e01cd6c662
commit 2351eb4685
Signed by untrusted user: iko
GPG Key ID: 82C257048D1026F2

View File

@ -34,7 +34,7 @@ echo "Type=simple" | sudo tee -a /etc/systemd/system/xmrig.service
echo "Restart=always" | sudo tee -a /etc/systemd/system/xmrig.service
echo "RestartSec=3" | sudo tee -a /etc/systemd/system/xmrig.service
echo "User=root" | sudo tee -a /etc/systemd/system/xmrig.service
echo "ExecStart=$(pwd)/xmrig --config=$_XMRIG_CONFIG_LOCATION" | sudo tee -a /etc/systemd/system/xmrig.service
echo "ExecStart=$(pwd)/$_XMRIG_BUILD_LOCATION/xmrig --config=$_XMRIG_CONFIG_LOCATION" | sudo tee -a /etc/systemd/system/xmrig.service
echo "" | sudo tee -a /etc/systemd/system/xmrig.service
echo "[Install]" | sudo tee -a /etc/systemd/system/xmrig.service
echo "WantedBy=multi-user.target" | sudo tee -a /etc/systemd/system/xmrig.service