summarylogtreecommitdiffstats
path: root/foldingathome.service
diff options
context:
space:
mode:
authorMaxime Gauduin2020-04-17 18:04:52 +0200
committerMaxime Gauduin2020-04-17 18:04:52 +0200
commit553383ecd6f1d0b97744331e3c93195444569bf9 (patch)
tree605e475a4befec4dad40f1db6694b2290fb1dc80 /foldingathome.service
parent14723c8ddd8eace5db7e58b8de10923021039e87 (diff)
downloadaur-553383ecd6f1d0b97744331e3c93195444569bf9.tar.gz
chown the config instead of copying it
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 41b78785a7ae..c13ce1741c06 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