Page 1 of 1

Run a program, as a service

Posted: Tue Jul 23, 2019 1:19 am
by wingnut144
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!)

Re: Run a program, as a service

Posted: Tue Jul 23, 2019 12:55 pm
by tpylkko
You need to give more information for anyone to be able to help you

Re: Run a program, as a service

Posted: Tue Jul 23, 2019 1:08 pm
by drgeoff
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.

Re: Run a program, as a service

Posted: Tue Jul 23, 2019 1:14 pm
by RaTTuS
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