FoldingAtHome / fah-issues

49 stars 9 forks source link

Linux Service needs to wait #1455

Open bb30994 opened 4 years ago

bb30994 commented 4 years ago

I had some boot instability issues that may have been related to fahclient starting at the same time as the graphics system. So I modified the fah.service to delay startup until after graphics are up and running.

[Unit] Description=Folding@Home for Systemd After=remote-fs.target After=network-online.target After=graphical.target Wants=network-online.target graphical.target

[Service] Type=simple WorkingDirectory=/var/lib/fahclient User=fahclient ExecStart=/usr/bin/FAHClient /etc/fahclient/config.xml --pid-file=/var/run/fahclient.pid

[Install] WantedBy=graphical.target

shorttack commented 4 years ago

Easy and elegant fix.

ghost commented 4 years ago

looks good to me, too. someone should put this in a merge request IMHO.

shorttack commented 4 years ago

@jcoffland Can we migrate this startup script into the Linux texting queue, please?

dmc5179 commented 4 years ago

What does the dependency on graphical.target do in the unit file for systems that do not have a graphical target?