wingnut144
Posts: 1
Joined: Tue Jul 23, 2019 1:15 am

Run a program, as a service

Tue Jul 23, 2019 1:19 am

I know its basic, but I'm running some bitcoin mining software that I would like to run as the Pi starts, and I'm thinking it needs to run as a service.

The problem is that when I type in the command manually, it seems like it takes several attempts before it actually kicks off (there's an error), so I'm not sure how to handle this on the Pi.

I could use some assistance, programming isn't my suit, and I don't use Linux/etc enough to be an expert at it (more of a Windows guy)

Anyone have a suggestion, or a solution?? :)

Thanks! (for being nice to the new guy!)

tpylkko
Posts: 382
Joined: Tue Oct 14, 2014 5:21 pm

Re: Run a program, as a service

Tue Jul 23, 2019 12:55 pm

You need to give more information for anyone to be able to help you

drgeoff
Posts: 9810
Joined: Wed Jan 25, 2012 6:39 pm

Re: Run a program, as a service

Tue Jul 23, 2019 1:08 pm

ISTR it was calculated some years ago that you will spend more in electricity costs to run the RPi than you can expect to mine.

User avatar
RaTTuS
Posts: 10459
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK

Re: Run a program, as a service

Tue Jul 23, 2019 1:14 pm

https://www.raspberrypi.org/forums/view ... 25#p898424 will help in making the systemd .service
stuff
the restart=always will be what you need

also ^WHS
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

Return to “General discussion”