Page 1 of 1

Linux ease of use

Posted: Sat Oct 18, 2008 10:00 pm
by silas_the_monk
I have downloaded the Linux version and been running it actively for a few weeks now. I want to start using this machine more actively now and so I want to change a few things.

1.) There is a core running. How do I make the following changes without upsetting anything.
2.) I want to move the files out of the /tmp directory into my home directory.
3.) I want the process to run automatically when I start. I can think of /etc/r.* or .bash_profile but I am not sure what will work best.
I certainly don't want to start running it as root.

Re: Linux ease of use

Posted: Sat Oct 18, 2008 11:02 pm
by shatteredsilicon
2) Why are they in the temp directory? You could just move mpiexec, fah6 and client.cfg over. Start the client with -oneunit to make it finish the current WU and then exit. That way you won't throw away the unit that's current'y running. Once that's done, just move the mentioned 3 files to the new directory and run as normal.

Run it from /etc/rc.local or use one of the many available init scripts if they work the way you like. To make it not run as root, you can create a fah user/group and run the client under that UID (make sure you chown all the fah files to that user first, of course). You can do that with something like this in rc.local:

pushd /path/to/fah
su -m fah -c "nice -n 19 /path/to/fah/fah6 2>&1 > /path/to/fah/fah6/stdout.log &"
popd

Re: Linux ease of use

Posted: Sun Oct 19, 2008 2:24 am
by Ivoshiee