Skip to content

Instantly share code, notes, and snippets.

@andreaso
Created June 29, 2020 17:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andreaso/a2346e35dc47b3fcdbd351334c69268f to your computer and use it in GitHub Desktop.
Save andreaso/a2346e35dc47b3fcdbd351334c69268f to your computer and use it in GitHub Desktop.
[Unit]
Description=Proper folding at home service unit
After=network.target
[Service]
Type=simple
User=fahclient
WorkingDirectory=/var/lib/fahclient
ExecStart=/usr/bin/FAHClient /etc/fahclient/config.xml
NoNewPrivileges=yes
PrivateDevices=yes
PrivateTmp=yes
ProtectHome=yes
ProtectSystem=strict
ReadWritePaths=/etc/fahclient/ /var/lib/fahclient/
Restart=on-failure
RestartSec=5s
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment