Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:marec2000:cryptocoins
bfgminer
start_bfgminer.in
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File start_bfgminer.in of Package bfgminer
#!/bin/sh # settings __SETTINGS__ # configuration file if ! [ -r $bfgminer_conf ] then echo "configuration file $bfgminer_conf is missing" >&2 exit 1 fi # log folder bfgminer_logdir=$(dirname $bfgminer_log) if ! [ -d $bfgminer_logdir ] then mkdir -p $bfgminer_logdir if [ $? != 0 ] then echo "creation of log folder failed" >&2 exit 1 fi fi # start/stop case $1 in start) { $bfgminer_bin -c $bfgminer_conf -q -T -L $bfgminer_log & sleep 1 ps -C bfgminer -o pid --no-headers | tr -d " " > $bfgminer_run };; stop) { if ! [ -r $bfgminer_run ] then echo "bfgminer is not running" >&2 exit 1 fi pid=$(cat $bfgminer_run) kill -TERM $pid rm -f $bfgminer_run };; esac
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor