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
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Science Biology related packages
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
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: ---


Attachments

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                    
[Unit]
Description=Folding@Home V7 Client
Documentation=https://foldingathome.org

[Service]
Type=simple
User=foldingathome
WorkingDirectory=/opt/foldingathome
PIDFile=/run/fahclient.pid
ExecStart=/opt/foldingathome/FAHClient -v
#ExecStart=/opt/foldingathome/FAHClient -v start
#ExecReload=/opt/foldingathome/FAHClient -v restart
#ExecStop=/opt/foldingathome/FAHClient -v stop
KillMode=process

[Install]
WantedBy=multi-user.target



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

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

[ https://foldingforum.org/viewtopic.php?f=89&t=33333 ]
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):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8590abe524112ff82b52b9a91ad120885f1e65fb

commit 8590abe524112ff82b52b9a91ad120885f1e65fb
Author:     Joonas Niilola <juippis@gentoo.org>
AuthorDate: 2020-03-27 07:15:22 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
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.
    
    Bug: https://bugs.gentoo.org/712744
    Bug: https://bugs.gentoo.org/714160
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 .../{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):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d7497c63f27f8b8cd65736ac400714a3614d7b4

commit 5d7497c63f27f8b8cd65736ac400714a3614d7b4
Author:     Brian Harring <ferringb@gmail.com>
AuthorDate: 2020-03-23 00:07:14 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
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
      reasons.
    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).
    
    Bug: https://bugs.gentoo.org/712744
    Signed-off-by: Brian Harring <ferringb@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/15145
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 .../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.