Ok, this is so weird I don't even know where to put this.
Recently I bought some low cost bitcoin miners. They are installed in my PC which is not running 24/7 (I know this is not efficient, but that's not the point).
So I made an easy script to start bfgminer inside a detached screen session, for future monitoring.
The problem is that, even though the script starts smoothly, I just can't find any screen session.
Digging with ps this is what I get:
Code:
root 1398 0.0 0.0 24208 1264 ? Ss ago25 0:08 SCREEN -S bfgminer -d -m bfgminer -S all -o stratum+tcp://us1.ghash.io:3333 -u <USER> -p <PASSWD>
As you can see the command is uppercase. As I said, I have no idea of what happened.
Any sugestions?
This is my script
Code:
#!/bin/bash
### BEGIN INIT INFO
# Provides: bfgminer + screen
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# X-Start-Before: kdm gdm3 xdm lightdm
# X-Stop-After: kdm gdm3 xdm lightdm
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Sets up bfgminer to bitcoin minning
# Description: Sets up bfgminer to bitcoin minning with given params inside a screen session
#
### END INIT INFO
server="stratum+tcp://us1.ghash.io:3333"
user="user"
passwd="passwd"
screen -S bfgminer -d -m bfgminer -S all -o $server -u $user -p $passwd