Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 712744 - sci-biology/foldingathome-7.5.1: broken systemd service ExecStart
Summary: sci-biology/foldingathome-7.5.1: broken systemd service ExecStart
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Biology related packages
Keywords: PullRequest
Depends on:
Reported: 2020-03-15 18:10 UTC by Dave V
Modified: 2020-12-09 11:48 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Dave V 2020-03-15 18:10:37 UTC
src_install creates the service with:
ExecStart=${EPREFIX}/opt/foldingathome/FAHClient -v start
ExecReload=${EPREFIX}/opt/foldingathome/FAHClient -v restart
ExecStop=${EPREFIX}/opt/foldingathome/FAHClient -v stop
but this generates:
ERROR:Exception: Failed to open 'start': Failed to open 'start': No such file or directory: No such file or directory

Deleting the "start" in /lib/systemd/system/foldingathome.service seems to fix the problem. My resulting file is:
# cat /lib/systemd/system/foldingathome.service                    
Description=Folding@Home V7 Client

ExecStart=/opt/foldingathome/FAHClient -v
#ExecStart=/opt/foldingathome/FAHClient -v start
#ExecReload=/opt/foldingathome/FAHClient -v restart
#ExecStop=/opt/foldingathome/FAHClient -v stop


Reproducible: Always
Comment 1 Manfred Knick 2020-03-24 12:30:44 UTC

     Bug 714160
Comment 2 Manfred Knick 2020-03-25 17:23:21 UTC
"F@H on Gentoo"   HOWTO:

[ ]
Comment 3 Larry the Git Cow gentoo-dev 2020-03-27 07:17:57 UTC
The bug has been referenced in the following commit(s):

commit 8590abe524112ff82b52b9a91ad120885f1e65fb
Author:     Joonas Niilola <>
AuthorDate: 2020-03-27 07:15:22 +0000
Commit:     Joonas Niilola <>
CommitDate: 2020-03-27 07:17:34 +0000

    sci-biology/foldingathome: attempt to fix init and service files
     - non-maintainer commit, since axs seems to be inactive.
    Signed-off-by: Joonas Niilola <>

 .../{foldingathome-7.5.1.ebuild => foldingathome-7.5.1-r1.ebuild} | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
Comment 4 Larry the Git Cow gentoo-dev 2020-03-28 07:01:34 UTC
The bug has been referenced in the following commit(s):

commit 5d7497c63f27f8b8cd65736ac400714a3614d7b4
Author:     Brian Harring <>
AuthorDate: 2020-03-23 00:07:14 +0000
Commit:     Joonas Niilola <>
CommitDate: 2020-03-28 07:01:19 +0000

    sci-biology/foldingathome: systemd cleanup, various fixes.
    1) force the `foldingathome` user group for the process for obvious
    2) link in the video group and add it to the foldingathome user- this
      is necessary for GPU utilization.
    3) force nice=19 from systemd level.  The batch processing attempts to
      do this for workers, but we might as well force it for the scheduler.
    4) Add explicit configuration directives to force- irregardless of host config-
      the scheduler to be foreground'd and running in a fashion that integrates w/
      systemd more sanely.
    5) Lockdown some basic systemd security while I'm in here.
    6) Finally, drop the pidfile directive for systemd.  Foreground process-
      no pidfile to track (nor should we have the unit create it).
    Signed-off-by: Brian Harring <>
    Signed-off-by: Joonas Niilola <>

 .../foldingathome/foldingathome-7.5.1-r2.ebuild      | 20 +++++++++++++-------
 1 file changed, 13 insertions(+), 7 deletions(-)
Comment 5 cryptopsy 2020-06-04 19:29:40 UTC
I set foldingathome user part of usergroup and chown -R foldingathome /opt/foldingathome and it works. Please merge.