Folding@Home Init Script

/etc/init.d/fah

#!/bin/sh

PATH=/sbin:/bin:/usr/bin:/opt/fah

. /lib/lsb/init-functions

case "$1" in
  start)
    log_begin_msg "Starting Folding@Home..."
    cd /opt/fah
    nice -n `cat priority 2> /dev/null || echo 0` ./FAH504-Linux.exe > /dev/null 2>&1 &
    log_end_msg $?
  ;;
  stop)
    log_begin_msg "Shutting Down Folding@Home..."
    killall FAH504-Linux.exe > /dev/null 2>&1
    log_end_msg $?
  ;;
  *)
    log_success_msg "Usage: /etc/init.d/fah {start|stop}"
    exit 1
  ;;
esac

exit 0

4 Responses to Folding@Home Init Script

  1. Pingback: Chris’ Blog » Blog Archive » Folding@Home

  2. Pingback: Chris’ Blog » Blog Archive » Folding@Home Init Script … Revisited

  3. Pingback: Chris’ Blog » Blog Archive » Folding@Home Init Script … Revisited

  4. Pingback: Chris’ Blog » Blog Archive » Folding@Home

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>