Last active
March 22, 2020 01:53
-
-
Save mmstick/5df55bf1d14a34306f7436b7a62ed7a8 to your computer and use it in GitHub Desktop.
Folding@Home Linux Setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Create a systemd service for the FAH client. | |
echo '[Unit] | |
Description=Folding@Home Client | |
After=network.target | |
[Service] | |
WorkingDirectory=/var/lib/fahclient | |
ExecStart=/usr/bin/FAHClient /etc/fahclient/config.xml --run-as fahclient --pid-file=/var/run/fahclient.pid | |
Restart=on-failure | |
[Install] | |
WantedBy=multi-user.target' > /etc/systemd/system/fah.service | |
# Disable the broken /etc/init.d/FAHClient service | |
systemctl disable FAHClient | |
systemctl stop FAHClient | |
killall -9 FAHClient | |
# Enable our newly-created systemd service | |
systemctl enable fah | |
systemctl start fah |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment