| Subject: Re: start seti from rcX.d |
| From: Martin |
| Date: 03/05/2004, 15:38 |
Johan Louwers wrote:
I am looking for a good script to start seti from rcX.d I think rc3.d
I am in need fore a script to be used on redhat and one used on
sun-solaris. I think I can use the same script.....
Someone can provide me with a script that can do this?
This is what I have for running GIMPS. I also use a similar one for such
as f@h until s@h transmutes into BOINC...
#!/bin/bash
# GIMPS mprime background task
# Good as a diagnostics check for the CPU and memory
# Also keeps the CPU usefully idling
mprime='
/home/bgusr/.mprime/mprime'
# Ensure only one mprime is running!
killall $mprime 2>&1 >/dev/null
$mprime -d 2>&1 >>/var/log/mprime/mprime_details.log &
Call the above script from the end of "/etc/rc.d/rc.local" or you could
just add your script onto the end rc.local directly.
Obviously, replace the mprime details with the equivalent for s@h cli
client.
I use a dummy user "bgusr" to run 'background' tasks. Limits the damage
if anything should go wrong!
Good luck,
Martin
--
---------- Give a man a fish and you have fed him for today.
- Martin - Teach him how to fish and he won't bother you for weeks!
- 53N 1W - - Anon
----------