Hey there,
I wrote a little script to start my miners which looks like this:
#!/bin/sh
while true
do
cd ~
cd phoenix-1.48/
./phoenix.py -u http://WORKERNAME:
[email protected]:8332 -q 5 -k phatk VECTORS BFI_INT FASTLOOP AGGRESSION=11 DEVICE=0 WORKSIZE=256 &
sleep 2
./phoenix.py -u http://WORKERNAME:
[email protected]:8332 -q 5 -k phatk VECTORS BFI_INT FASTLOOP AGGRESSION=5 DEVICE=0 WORKSIZE=256 &
sleep 5
./phoenix.py -u http://WORKERNAME:
[email protected]:8332 -q 5 -k phatk VECTORS BFI_INT FASTLOOP AGGRESSION=11 DEVICE=1 WORKSIZE=256 &
sleep 2
./phoenix.py -u http://WORKERNAME:
[email protected]:8332 -q 5 -k phatk VECTORS BFI_INT FASTLOOP AGGRESSION=5 DEVICE=1 WORKSIZE=256 &
sleep 5
./phoenix.py -u http://WORKERNAME:
[email protected]:8332 -q 5 -k phatk VECTORS BFI_INT FASTLOOP AGGRESSION=11 DEVICE=2 WORKSIZE=256 &
sleep 2
./phoenix.py -u http://WORKERNAME:
[email protected]:8332 -q 5 -k phatk VECTORS BFI_INT FASTLOOP AGGRESSION=5 DEVICE=2 WORKSIZE=256 &
sleep 7200
killall phoenix.py
done
The idea is, to start all three GPUs, with some delay to prevent a power surge. Although I am using two pools each, with different aggression to be on the safe site, if pools go down like they used to do last week. And because I'm still using phoenic 1.48, the script kills and restarts the whole process every two hours in case the miner crashes.
So far so good, this has been working fine for two weeks now.
Now I got a place to put up the rig in a Friends company office. (no heat and noise for me and although kWhs are much cheaper for businesses
)
To be make the rig absolutely stable, I now wanted to put my script into Ubuntus Startup applications, so that I can just call there and ask my friend to hit the reset button in case the system hangs up completely for whatever reason.
I put the following line into the startup-applications menu:
gnome-terminal -e '/bin/bash startup.sh'
But when I reset my system now, I get the following outut in the terminal that is supposed to run the script:
Traceback (most recent call last):
File "./phoenix.py", line 123, in
miner.start(options)
File "/home/miner/phoenix-1.48/Miner.py", line 75, in start
self.kernel = self.options.makeKernel(KernelInterface(self))
File "./phoenix.py", line 111, in makeKernel
kernelModule = imp.load_module(module, file, filename, smt)
File "kernels/phatk/__init__.py", line 23, in
import pyopencl as cl
File "/usr/local/lib/python2.7/dist-packages/pyopencl-0.92-py2.7-linux-i686.egg/pyopencl/__init__.py", line 3, in
import pyopencl._cl as _cl
ImportError: libOpenCL.so.1: cannot open shared object file: No such file or directory
Can Anyone tell me, why that is? I speculate it has to to with permissions (maybe the gnome-startup doesn't have the same permissions as I do, when i manually call the script?
Thank you guys!