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 | |
parent | 14723c8ddd8eace5db7e58b8de10923021039e87 (diff) | |
download | aur-553383ecd6f1d0b97744331e3c93195444569bf9.tar.gz |
chown the config instead of copying it
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 4 | ||||
-rw-r--r-- | foldingathome.service | 6 |
3 files changed, 8 insertions, 6 deletions
@@ -1,7 +1,7 @@ pkgbase = foldingathome pkgdesc = A distributed computing project for simulating protein dynamics pkgver = 7.6.8 - pkgrel = 2 + pkgrel = 3 url = https://foldingathome.org/ install = foldingathome.install arch = x86_64 @@ -17,7 +17,7 @@ pkgbase = foldingathome source = https://download.foldingathome.org/releases/public/release/fahclient/debian-stable-64bit/v7.6/fahclient_7.6.8-64bit-release.tar.bz2 source = foldingathome.service sha256sums = 588253c0042dcb0a6b97c9e16ccb8189b316df051094be4202881120255e5d31 - sha256sums = c264dc6955b5f9cc85bd48a60e23a8b0e6fa01e0a7a636bb189d8e0c507df24c + sha256sums = 76bcba46247d75668adcf1b0bb965e720cdefa9e24d325ed16a45e76a0074754 pkgname = foldingathome @@ -5,7 +5,7 @@ pkgname=foldingathome pkgver=7.6.8 -pkgrel=2 +pkgrel=3 pkgdesc='A distributed computing project for simulating protein dynamics' arch=(x86_64) url=https://foldingathome.org/ @@ -28,7 +28,7 @@ source=( foldingathome.service ) sha256sums=('588253c0042dcb0a6b97c9e16ccb8189b316df051094be4202881120255e5d31' - 'c264dc6955b5f9cc85bd48a60e23a8b0e6fa01e0a7a636bb189d8e0c507df24c') + '76bcba46247d75668adcf1b0bb965e720cdefa9e24d325ed16a45e76a0074754') package() { install -Dm 755 fahclient_${pkgver}-64bit-release/FAHClient -t "${pkgdir}"/usr/bin/ 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 |