I’ve recently joined the computational effort of Folding@Home for disease research, I want to share some of the modifications I’ve done to run it in Fedora more comfortably.
First, download and install the 3 RPM packages in the Start Folding section.
# dnf install fahclient-7.5.1-1.x86_64.rpm fahcontrol-7.5.1-1.noarch.rpm fahviewer-7.5.1-1.x86_64.rpm
As it uses a old init script, stop the service and create these files to manage it with systemd:
/etc/systemd/system/FAHClient.service
[Unit]
Description=Folding@Home
Documentation=https://foldingathome.org/
[Service]
Type=exec
User=fahclient
Group=fahclient
WorkingDirectory=/var/lib/fahclient
ExecStart=/usr/bin/FAHClient /etc/fahclient/config.xml --pid-file=/run/fahclient/FAHClient.pid
ExecReload=/usr/bin/kill -SIGUSR1 $MAINPID
PIDFile=/run/fahclient/FAHClient.pid
Nice=19
CPUSchedulingPolicy=idle
PrivateTmp=yes
CapabilityBoundingSet=
ProtectSystem=full
ProtectHome=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectControlGroups=true
NoNewPrivileges=true
Restart=always
RestartSec=5s
[Install]
WantedBy=multi-user.target
/etc/tmpfiles.d/fahclient.conf
D /run/fahclient 0755 fahclient fahclient -
Reload systemd, create the /run/fahclient directory and start the service:
# systemctl daemon-reload # systemd-tmpfiles --create # systemctl enable --now FAHClient.service
You can monitor it now with the system journal:
# journalctl -u FAHClient