Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@mmstick
Last active March 22, 2020 01:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mmstick/5df55bf1d14a34306f7436b7a62ed7a8 to your computer and use it in GitHub Desktop.
Save mmstick/5df55bf1d14a34306f7436b7a62ed7a8 to your computer and use it in GitHub Desktop.
Folding@Home Linux Setup
#!/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