Author

Topic: bfgminer as daemon? (Read 83 times)

jr. member
Activity: 33
Merit: 8
May 05, 2021, 04:23:05 PM
#3
Thanks.  Ubuntu I presume?

Any way to prioritize startups of those files?  For example, if I want to start bitcoind first, then bfgminer proxy, then cgminer last?
newbie
Activity: 14
Merit: 2
May 05, 2021, 09:54:11 AM
#2
So I have cgminer, it starts at startup, picks configuration from the file, background process with screen, and if it stops, it starts again.

/etc/systemd/system/cgminer.service
Code:
[Unit]
Description=cgminer
After=network.target ntp.service

[Service]
Type=forking
ExecStart=/usr/bin/screen -dmS cgminer /home/$USER/cgminer-4.9.2/cgminer --sharelog /home/$USER/cgminer.log -c /home/$USER/.cgminer/cgminer.conf
ExecStop=/usr/bin/screen -S cgminer -X quit
Restart=always

[Install]
WantedBy=multi-user.target

Code:
chmod 0644 /etc/systemd/system/cgminer.service
systemctl enable cgminer.service


BTC 1DCRu4pnnwtbUYRy1evVw7TzXGW8XMwMNc
jr. member
Activity: 33
Merit: 8
May 04, 2021, 10:49:39 AM
#1
I am using bfgminer as a proxy only, is there a way to run this as a daemon in the background?  Right now I have to have an open console window.
Jump to: