Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Apr 2020 15:39:13 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 245506] biology/linux-foldingathome: Improve startup script, join "Team FreeBSD" by default
Message-ID:  <bug-245506-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D245506

            Bug ID: 245506
           Summary: biology/linux-foldingathome: Improve startup script,
                    join "Team FreeBSD" by default
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: 0mp@FreeBSD.org
          Reporter: grembo@FreeBSD.org
             Flags: maintainer-feedback?(0mp@FreeBSD.org)
          Assignee: 0mp@FreeBSD.org

Created attachment 213247
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D213247&action=
=3Dedit
Patch to improve startup script and join Team FreeBSD automatically

This patch brings a couple of improvements:

- `fahclient_log' is now passed in the --log parameter to
  FAHClient, so that the log file is actually written in
  the location `service fahclient log' is looking in.
- `fahclient_donor' can be set to specify the user to attribute
  the work units processed to. If the user already has a donor
  configured in config.xml, that setting take precedence
  (following the POLA principle). It defaults to `Anonymous'.
- `fahclient_team' can be set to specify the team to attribute
  the work units processed to. If the user already has a team
  configured in config.xml, that setting take precedence
  (following the POLA principle). It defaults to the Team ID
  of "Team FreeBSD".
- `fahclient_extra_flags' can be used to specify additional
  settings to be passed to FAHClient (`fahclient_flags' also works,
  but anything set in there can be overriden in config.xml. FAHClient
  will warn in such cases).
- New command `service fahclient showconfig' can be used
  to see the actual settings that FAHClient is using.
- Using --option=3Dvalue syntax to reduce fallout in case a
  setting wasn't configured properly.
- Document all settings on top of the rc file.

As a result, configuring the port is quite comfortable:

    service fahclient enable
    service fahclient start

will start FAHClient as Anonymous, contributing to "Team FreeBSD".

    sysrc fahclient_user=3Dthat_folding_guy
    sysrc fahclient_team=3D12171
    sysrc fahclient_extra_flags+=3D" --cpus=3D7"
    service fahclient restart

will send work units as donor `that_folding_guy', member of an
alternative team named "FreeBSD", utilizing up to 7 CPUs.

    service fahclient showconfig | grep cpus

will give the peace of mind that the setting caught on.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-245506-7788>