diff options
author | Maxime Gauduin | 2020-04-17 18:04:52 +0200 |
---|---|---|
committer | Maxime Gauduin | 2020-04-17 18:04:52 +0200 |
commit | 553383ecd6f1d0b97744331e3c93195444569bf9 (patch) | |
tree | 605e475a4befec4dad40f1db6694b2290fb1dc80 /foldingathome.service | |
parent | 14723c8ddd8eace5db7e58b8de10923021039e87 (diff) | |
download | aur-553383ecd6f1d0b97744331e3c93195444569bf9.tar.gz |
chown the config instead of copying it
Diffstat (limited to 'foldingathome.service')
-rw-r--r-- | foldingathome.service | 6 |
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 |