Results 1 to 8 of 8

Thread: Start Folding@Home on boot

  1. #1

    Default 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:

    Code:
    @reboot cd "/home/server/Folding\@Home/"; ./fah6 -verbosity 9
    and After booting, I ran this to check it:

    Code:
    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:

    Code:
    ibm-server:~ # pgrep -l '^fah'
    7452 fah6
    ibm-server:~ #
    Any ideas?

  2. #2

    Default Re: Start Folding@Home on boot

    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.

  3. #3

    Default Re: Start Folding@Home on boot

    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:
    Code:
    ibm-server:~ # pgrep -l '^fah'
    ibm-server:~ #
    But if I start F@H manually by running
    Code:
    ~/folding/fah6 -smp -verbosity 9
    then I get this:
    Code:
    ibm-server:~ # pgrep -l '^fah'
    6404 fah6
    ibm-server:~ #
    Something's not right. Just gotta figure out what it is.

  4. #4

    Default Re: Start Folding@Home on boot

    Here's the contents of the /etc/init.d/folding script that's supposed to execute F@H:
    Code:
    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.

  5. #5
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,832
    Blog Entries
    15

    Default Re: Start Folding@Home on boot

    Quote Originally Posted by shane2943
    Here's the contents of the /etc/init.d/folding script that's supposed to
    execute F@H:

    Code:
    --------------------
    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


  6. #6
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Start Folding@Home on boot

    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)

  7. #7

    Default Re: Start Folding@Home on boot

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

  8. #8

    Default Re: Start Folding@Home on boot

    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).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •