Nevermind, I got it sorted. Here's the script, if you want it:
You'll want to change the value of $GAH to be the full path of your ghclient.x binary, and you'll want to change the directory it changes to to be the one where you've got your ghclient.x...Code:#!/bin/sh source /etc/init.d/functions GAH="/home/feztaa/gah/ghclient.x" cd /home/feztaa/gah/ >/dev/null 2>&1 case "$1" in start) echo -n "Starting Genome@Home client ... " su feztaa -c "$GAH >/dev/null 2>&1 &" evaluate_retval ;; stop) echo -n "Stopping Genome@Home's ghclient.x... " killproc ghclient.x echo -n "Stopping Genome@Home's filter.x... " killproc filter.x ;; restart) $0 stop /usr/bin/sleep 1 $0 start ;; status) statusproc ghclient.x statusproc filter.x ;; *) echo "Usage: $0 {start|stop|restart|status}" exit 1 ;; esac
The /etc/init.d/functions that I sourced is the one that comes with LFS. You can get it here:
ftp://ftp.linuxfromscratch.org/lfs-b...ts-3.1.tar.bz2 (that also has some extra ones you don't need. just keep the functions file)


Reply With Quote
)

Bookmarks