Jump to content

As most users running Linux have discovered the init.d startup script for Folding@Home is broken and while it starts the service it does not properly stop and reload it.

 

I found a fix for the script at foldingforum.org.

 

Stop Running Client:

killall FAHClient

Edit it adding at about line 121

echo $pid > $PID

between:

     fi

     pid=$!
+    echo $pid > $PID
     if wait_for_log_change "$LOG_STATUS" $pid; then
         echo "OK"
     else

Reload the system daemon:

systemctl daemon-reload

Now starting, stopping and reloading should work.

service FAHClient start
service FAHClient stop
service FAHClient reload

6 GPU Folding Rig  Linux Folding HOWTO Folding Remote Access Folding GPU Profiling ToU Scheduling UPS

Systems:

desktop: Lian-Li O11 Air Mini; Asus ProArt x670e WiFi; Ryzen 9 7950x; EVGA 240 CLC; 2 x 48GB DDR5-6000; 2 x Samsung 980 Pro 500GB PCIe3 NVMe; 2 x 8TB NAS; MSI RTX 4070 ti Super; AMD FirePro W4100; Corsair SFF750

nas1: Fractal Node 804; SuperMicro X10sl7-f; Xeon e3-1231v3; 4 x 8GB DDR3-1666 ECC; 2 x 250GB Samsung EVO Pro SSD; 7 x 4TB Seagate NAS; Corsair HX650i

nas2: Synology DS-123j; 2 x 6TB WD Red Plus NAS

nas3: Synology DS-224+; 2 x 12TB Seagate NAS

dcn01: Fractal Pop Silent XL; Gigabyte Aorus z570 Master; Ryzen 9 3950x; AMD Wraith; 2 x 16GB DDR4-3200; 256GB NVMe; Gigabyte Gaming RTX 4080 Super; MSI 4070 Ti Super Gaming X; Corsair RM750e

dcn04: Fractal Define S; Gigabyte Aorus ax570 Master; Ryzen 9 5950x; BeQuiet! PureRock 2; 2 x 16GB DDR4-3200; 250GB NVMe; ; Gigabyte Gaming RTX 4080 Super; MSI 4070 Ti Super Ventus 2; Corsair TX750M

Link to comment
https://linustechtips.com/topic/1461391-patch-for-linux-fahclient-script/
Share on other sites

Link to post
Share on other sites

On 10/16/2022 at 7:51 AM, Gorgon said:

As most users running Linux have discovered the init.d startup script for Folding@Home is broken and while it starts the service it does not properly stop and reload it.

 

I found a fix for the script at foldingforum.org (sorry - lost the original link).

 

Stop Running Client:

killall FAHClient

Edit it adding at about line 121

echo $pid > $PID

between:

     fi

     pid=$!
+    echo $pid > $PID
     if wait_for_log_change "$LOG_STATUS" $pid; then
         echo "OK"
     else

Reload the system daemon:

systemctl daemon-reload

Now starting, stopping and reloading should work.

service FAHClient start
service FAHClient stop
service FAHClient reload

when did this happen or has it been there for a long time, ( I likely didnt notice as the linux are just on all the time)

Link to post
Share on other sites

5 hours ago, NetoriusNick said:

when did this happen or has it been there for a long time, ( I likely didnt notice as the linux are just on all the time)

At least since Client 7.6.13 in 2020 and likely all the way back to the initial 7.6 when COVID was released as a Cause Preference

6 GPU Folding Rig  Linux Folding HOWTO Folding Remote Access Folding GPU Profiling ToU Scheduling UPS

Systems:

desktop: Lian-Li O11 Air Mini; Asus ProArt x670e WiFi; Ryzen 9 7950x; EVGA 240 CLC; 2 x 48GB DDR5-6000; 2 x Samsung 980 Pro 500GB PCIe3 NVMe; 2 x 8TB NAS; MSI RTX 4070 ti Super; AMD FirePro W4100; Corsair SFF750

nas1: Fractal Node 804; SuperMicro X10sl7-f; Xeon e3-1231v3; 4 x 8GB DDR3-1666 ECC; 2 x 250GB Samsung EVO Pro SSD; 7 x 4TB Seagate NAS; Corsair HX650i

nas2: Synology DS-123j; 2 x 6TB WD Red Plus NAS

nas3: Synology DS-224+; 2 x 12TB Seagate NAS

dcn01: Fractal Pop Silent XL; Gigabyte Aorus z570 Master; Ryzen 9 3950x; AMD Wraith; 2 x 16GB DDR4-3200; 256GB NVMe; Gigabyte Gaming RTX 4080 Super; MSI 4070 Ti Super Gaming X; Corsair RM750e

dcn04: Fractal Define S; Gigabyte Aorus ax570 Master; Ryzen 9 5950x; BeQuiet! PureRock 2; 2 x 16GB DDR4-3200; 250GB NVMe; ; Gigabyte Gaming RTX 4080 Super; MSI 4070 Ti Super Ventus 2; Corsair TX750M

Link to post
Share on other sites

2 hours ago, NetoriusNick said:

think that maybe i got round changes to the config using system reboot

In general while FAHClient is running you  can't change the config as when FAHClient stops it overwrites the config. So to edit the config you usually need to stop the client, edit the config, and re-start.

killall fahclient

can be used to brutally stop the client then

service FAHClient start

used to restart it but editing the init script to add the Process ID (PID) is much more graceful.

6 GPU Folding Rig  Linux Folding HOWTO Folding Remote Access Folding GPU Profiling ToU Scheduling UPS

Systems:

desktop: Lian-Li O11 Air Mini; Asus ProArt x670e WiFi; Ryzen 9 7950x; EVGA 240 CLC; 2 x 48GB DDR5-6000; 2 x Samsung 980 Pro 500GB PCIe3 NVMe; 2 x 8TB NAS; MSI RTX 4070 ti Super; AMD FirePro W4100; Corsair SFF750

nas1: Fractal Node 804; SuperMicro X10sl7-f; Xeon e3-1231v3; 4 x 8GB DDR3-1666 ECC; 2 x 250GB Samsung EVO Pro SSD; 7 x 4TB Seagate NAS; Corsair HX650i

nas2: Synology DS-123j; 2 x 6TB WD Red Plus NAS

nas3: Synology DS-224+; 2 x 12TB Seagate NAS

dcn01: Fractal Pop Silent XL; Gigabyte Aorus z570 Master; Ryzen 9 3950x; AMD Wraith; 2 x 16GB DDR4-3200; 256GB NVMe; Gigabyte Gaming RTX 4080 Super; MSI 4070 Ti Super Gaming X; Corsair RM750e

dcn04: Fractal Define S; Gigabyte Aorus ax570 Master; Ryzen 9 5950x; BeQuiet! PureRock 2; 2 x 16GB DDR4-3200; 250GB NVMe; ; Gigabyte Gaming RTX 4080 Super; MSI 4070 Ti Super Ventus 2; Corsair TX750M

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×