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
CROSS-REFERENCE: Bug 714160
"F@H on Gentoo" HOWTO: [ https://foldingforum.org/viewtopic.php?f=89&t=33333 ]
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(-)
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(-)
I set foldingathome user part of usergroup and chown -R foldingathome /opt/foldingathome and it works. Please merge.