Any way to auto-start FAHclient in Linux?

Moderators: Site Moderators, FAHC Science Team

Post Reply
Demmers
Posts: 38
Joined: Sat Mar 07, 2020 12:57 pm

Any way to auto-start FAHclient in Linux?

Post by Demmers »

I recently re-installed Linux Mint, so have had to re-install everything. By the looks of it, I wish I had selected to start FAHclient right after installation, because now, after every reboot, FAHcontrol just sits at "Connecting". I have to manually do

Code: Select all

sudo /etc/init.d/FAHClient start
to get it connecting, but I never had to do this before. Is there a way of adding it to Startup Applications for example?

Code: Select all

*********************** Log Started 2021-06-22T20:29:29Z ***********************
20:29:29:******************************* libFAH ********************************
20:29:29:       Date: Oct 20 2020
20:29:29:       Time: 20:36:39
20:29:29:   Revision: 5ca109d295a6245e2a2f590b3d0085ad5e567aeb
20:29:29:     Branch: master
20:29:29:   Compiler: GNU 8.3.0
20:29:29:    Options: -faligned-new -std=c++11 -fsigned-char -ffunction-sections
20:29:29:             -fdata-sections -O3 -funroll-loops -fno-pie
20:29:29:   Platform: linux2 5.8.0-1-amd64
20:29:29:       Bits: 64
20:29:29:       Mode: Release
20:29:29:****************************** FAHClient ******************************
20:29:29:    Version: 7.6.21
20:29:29:     Author: Joseph Coffland <joseph@cauldrondevelopment.com>
20:29:29:  Copyright: 2020 foldingathome.org
20:29:29:   Homepage: https://foldingathome.org/
20:29:29:       Date: Oct 20 2020
20:29:29:       Time: 20:39:00
20:29:29:   Revision: 6efbf0e138e22d3963e6a291f78dcb9c6422a278
20:29:29:     Branch: master
20:29:29:   Compiler: GNU 8.3.0
20:29:29:    Options: -faligned-new -std=c++11 -fsigned-char -ffunction-sections
20:29:29:             -fdata-sections -O3 -funroll-loops -fno-pie
20:29:29:   Platform: linux2 5.8.0-1-amd64
20:29:29:       Bits: 64
20:29:29:       Mode: Release
20:29:29:       Args: --child /etc/fahclient/config.xml --run-as fahclient
20:29:29:             --pid-file=/var/run/fahclient.pid --daemon
20:29:29:     Config: /etc/fahclient/config.xml
20:29:29:******************************** CBang ********************************
20:29:29:       Date: Oct 20 2020
20:29:29:       Time: 18:37:59
20:29:29:   Revision: 7e4ce85225d7eaeb775e87c31740181ca603de60
20:29:29:     Branch: master
20:29:29:   Compiler: GNU 8.3.0
20:29:29:    Options: -faligned-new -std=c++11 -fsigned-char -ffunction-sections
20:29:29:             -fdata-sections -O3 -funroll-loops -fno-pie -fPIC
20:29:29:   Platform: linux2 5.8.0-1-amd64
20:29:29:       Bits: 64
20:29:29:       Mode: Release
20:29:29:******************************* System ********************************
20:29:29:        CPU: AMD Ryzen 5 3400G with Radeon Vega Graphics
20:29:29:     CPU ID: AuthenticAMD Family 23 Model 24 Stepping 1
20:29:29:       CPUs: 8
20:29:29:     Memory: 13.68GiB
20:29:29:Free Memory: 11.91GiB
20:29:29:    Threads: POSIX_THREADS
20:29:29: OS Version: 5.4
20:29:29:Has Battery: false
20:29:29: On Battery: false
20:29:29: UTC Offset: 1
20:29:29:        PID: 2309
20:29:29:        CWD: /var/lib/fahclient
20:29:29:         OS: Linux 5.4.0-77-generic x86_64
20:29:29:    OS Arch: AMD64
20:29:29:       GPUs: 1
20:29:29:      GPU 0: Bus:10 Slot:0 Func:0 AMD:5 raven [Radeon RX Vega gfx902]
20:29:29:       CUDA: Not detected: Failed to open dynamic library 'libcuda.so':
20:29:29:             libcuda.so: cannot open shared object file: No such file or
20:29:29:             directory
20:29:29:     OpenCL: Not detected: Failed to open dynamic library 'libOpenCL.so':
20:29:29:             libOpenCL.so: cannot open shared object file: No such file or
20:29:29:             directory
20:29:29:***********************************************************************
20:29:29:<config>
20:29:29:  <!-- Client Control -->
20:29:29:  <fold-anon v='true'/>
20:29:29:
20:29:29:  <!-- Folding Slot Configuration -->
20:29:29:  <cause v='HIGH_PRIORITY'/>
20:29:29:
20:29:29:  <!-- Network -->
20:29:29:  <proxy v=':8080'/>
20:29:29:
20:29:29:  <!-- Slot Control -->
20:29:29:  <pause-on-start v='true'/>
20:29:29:
20:29:29:  <!-- User Information -->
20:29:29:  <passkey v='*****'/>
20:29:29:  <team v='76140'/>
20:29:29:  <user v='Demmers'/>
20:29:29:
20:29:29:  <!-- Folding Slots -->
20:29:29:  <slot id='0' type='CPU'>
20:29:29:    <cpus v='4'/>
20:29:29:  </slot>
20:29:29:  <slot id='1' type='GPU'>
20:29:29:    <pci-bus v='10'/>
20:29:29:    <pci-slot v='0'/>
20:29:29:  </slot>
20:29:29:</config>
20:29:29:Trying to access database...
20:29:29:Successfully acquired database lock
20:29:29:FS00:Initialized folding slot 00: cpu:4
20:29:29:WARNING:FS01:No CUDA or OpenCL 1.2+ support detected for GPU slot 01: gpu:10:0 raven [Radeon RX Vega gfx902].  Disabling.
20:29:45:FS00:Unpaused
20:29:45:WU00:FS00:Connecting to assign1.foldingathome.org:80
20:29:46:WU00:FS00:Assigned to work server 129.32.209.205
20:29:46:WU00:FS00:Requesting new work unit for slot 00: cpu:4 from 129.32.209.205
20:29:46:WU00:FS00:Connecting to 129.32.209.205:8080
20:29:46:WU00:FS00:Downloading 1.47MiB
20:29:48:WU00:FS00:Download complete
20:29:48:WU00:FS00:Received Unit: id:00 state:DOWNLOAD error:NO_ERROR project:16959 run:38 clone:77 gen:92 core:0xa8 unit:0x0000004d0000005c0000423f00000026
20:29:48:WU00:FS00:Starting
Demmers
Posts: 38
Joined: Sat Mar 07, 2020 12:57 pm

Re: Any way to auto-start FAHclient in Linux?

Post by Demmers »

Actually, just realised how to add the command into Startup Applications. I also should add that i've already added "pause-on-start True" into FAHcontrol. Will give that a go later and report back.
Post Reply