1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00
freebsd-ports/biology/linux-foldingathome/scripts/FoldingAtHome
Edwin Groothuis e713c30f0c biology/linux-foldingathome needs to run as root?
(also: update to 5.0.4)

	Upon installing FoldingAtHome I ran the software from a
	user account only to find that I was stuck in a loop of
	trying to enter configuration options. Shortly thereafter
	I realized that it was trying to write to
	/usr/local/share/foldingathome, and therefore requires being
	run as root to write there unless one changes permissions
	there. Seing as this isn't installed with a startup script
	for daemonization, and running as root seems a little
	excessive for this application, should this be adapted to
	run from a user account or set up to be able to start at
	boot?

And from maintainer:

	This diff updates the port to version 5.04, and adds
	support to running as normal user using ~/.fah
	directory.

PR:		ports/113335
Submitted by:	James Snyder <jbsnyder@fanplastic.org>
Approved by:	maintainer
2007-09-23 05:45:41 +00:00

8 lines
110 B
Bash

#!/bin/sh
FAHDIR=~/.fah
CURDIR=`pwd`
mkdir $FAHDIR
cd $FAHDIR
nice -n 20 /DATADIR/BINNAME -freeBSD
cd $CURDIR