Start Folding@Home on boot

Hi everyone.

I would like Folding@Home to start on boot. I have added it to my crontab, but it doesn’t seem to be working. This is the entry I made in the crontab:

@reboot cd "/home/server/Folding\@Home/"; ./fah6 -verbosity 9

and After booting, I ran this to check it:

ibm-server:~ # pgrep -l '^fah'
ibm-server:~ # 

But you can see there’s no output.

If I run that command manually, F@H starts fine. I checked the processes for fah6 after booting and F@H is not running. If I start it manually, however:

ibm-server:~ # pgrep -l '^fah'
7452 fah6
ibm-server:~ # 

Any ideas?

Forgot to list the setup: Opensuse 12.2 x64 XFCE but the system boots to runlevel 3. I only go into runlevel 5 with XFCE when I need it.

Mkay, so I decided to start over and install F@H this way:

Folding@home - LinSMPGuide

I installed it as root because installing it as the user gave errors. I did follow the special instructions for installations done as root.

I then followed the part off the instructions to make F@H a service that starts on boot. Everything went fine. But after the reboot, F@H is not running.

Fresh after reboot:

ibm-server:~ # pgrep -l '^fah'
ibm-server:~ #

But if I start F@H manually by running

~/folding/fah6 -smp -verbosity 9

then I get this:

ibm-server:~ # pgrep -l '^fah'
6404 fah6
ibm-server:~ #

Something’s not right. Just gotta figure out what it is.

Here’s the contents of the /etc/init.d/folding script that’s supposed to execute F@H:

ibm-server:~ # cat /etc/init.d/folding
# chkconfig: 345 93 14
# description: will start FAH client as a service
cd /root/folding; ./fah6 -smp < /dev/null > /dev/null 2>&1 &
ibm-server:~ #

If I run the script manually, F@H starts and I can monitor it with the F@H log. It just won’t execute by itself on boot.

Hi
Either create a systemd service or look at /etc/init.d/skeleton
template file and adapt for your program.


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 12.2 (x86_64) Kernel 3.4.6-2.10-desktop
up 4 days 12:10, 5 users, load average: 1.16, 1.09, 1.06
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU

On 2012-09-29 22:06, shane2943 wrote:
>
> Hi everyone.
>
> I would like Folding@Home to start on boot. I have added it to my
> crontab, but it doesn’t seem to be working. This is the entry I made in
> the crontab:
>
>
> Code:
> --------------------
> @reboot cd “/home/server/Folding@Home/”; ./fah6 -verbosity 9
> --------------------

If you want to do it this way, use a single script (using full paths inside), then verify in
the log that the entry runs, and look for errors in the mail.


Cheers / Saludos,

Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)

Forgive my ignorance, but a script would be a .sh file right?

On 10/02/12 11:26, shane2943 pecked at the keyboard and wrote:
> Forgive my ignorance, but a script would be a .sh file right?
>
>
This is not MS windows, so no, a script does not require a .sh
extension. It only requires executable statements in the file and that
the file either be launched using sh <filename> or have the executable
bit set and be in your path (or called with the full path).