Use bfgminer as a service on Ubuntu (upstart)

I’ve move my tiny miner from my mac to a linux (ubuntu) server. When I tried to run bfgminer as a normal use, I’ve found that it would not detect my miner, which was attached and nicely recognised by the system. Only after running it as root, it did detect and loaded it properly. So, I’ve figured there’s no point having a terminal open at all times, but instead make it a “daemon”, via upstart.

The code is simple; in /etc/init, create a file bfgminer.conf file with the following content:

The idea is to run the program with output to syslog (hence the --syslog flag). I’ve added --api-listen to allow API access to the program (from localhost), in case we want to monitor the behaviour.

You’ll need a bfgminer.conf configuration file in /etc/bfgminer with the settings. Mine is:

A little experiment: If you find this post and ad below useful, please check the ad out :-)

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to top