summarylogtreecommitdiffstats
path: root/foldingathome.service
diff options
context:
space:
mode:
Diffstat (limited to 'foldingathome.service')
-rw-r--r--foldingathome.service6
1 files changed, 4 insertions, 2 deletions
diff --git a/foldingathome.service b/foldingathome.service
index 41b78785a7a..c13ce1741c0 100644
--- a/foldingathome.service
+++ b/foldingathome.service
@@ -6,10 +6,12 @@ After=network.target
Type=simple
User=fah
DynamicUser=yes
+PermissionsStartOnly=true
+ConfigurationDirectory=foldingathome
StateDirectory=fah
WorkingDirectory=/var/lib/fah
-ExecStartPre=/usr/bin/cp /etc/foldingathome/config.xml /var/lib/fah/
-ExecStart=/usr/bin/FAHClient
+ExecStartPre=/usr/bin/chown fah:fah /etc/foldingathome/config.xml
+ExecStart=/usr/bin/FAHClient --config /etc/foldingathome/config.xml
CPUSchedulingPolicy=idle
IOSchedulingClass=3