hmmm, kannst meins haben is zwar fĂĽr redhat ... aber was solls musst du noch ein wenig anpassen ......
falls es nicht klappt (ich hab gesehen, dass das forum anscheinend einen bug hat was sonderzeichen betrifft) stell ichs auf meinen server ...
www.gnustuff.com/pub/
---cut ---
!/bin/sh
#
# Source function library.
. /etc/rc.d/init.d/functions
# Source networking configuration.
. /etc/sysconfig/network
# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0
RETVAL=0
# See how we were called.
case "$1" in
start)
# Start daemons.
echo -n "Starting Seti@home: "
echo
test -e /tmp/.seti.1 || mkdir /tmp/.seti.1
cd /tmp/.seti.1 ; /usr/local/bin/setiathome > /dev/null &
echo " process 1 started"
test -e /tmp/.seti.2 || mkdir /tmp/.seti.2
cd /tmp/.seti.2 ; /usr/local/bin/setiathome > /dev/null &
echo " process 2 started"
test -e /tmp/.seti.3 || mkdir /tmp/.seti.3
cd /tmp/.seti.3 ;nice -n -10 /usr/local/bin/setiathome > /dev/null &
echo " process 3 started"
test -e /tmp/.seti.4 || mkdir /tmp/.seti.4
cd /tmp/.seti.4 ;nice -n -10 /usr/local/bin/setiathome > /dev/null &
echo " process 4 started"
test -e /tmp/.seti.5 || mkdir /tmp/.seti.5
cd /tmp/.seti.5 ;nice -n -10 /usr/local/bin/setiathome > /dev/null &
echo " process 5 started"
test -e /tmp/.seti.6 || mkdir /tmp/.seti.6
cd /tmp/.seti.6 ; nice -n -10 /usr/local/bin/setiathome > /dev/null &
echo " process 6 started"
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/seti
;;
stop)
# Stop daemons.
echo -n "Shutting down Seti@home: "
killall setiathome
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/seti
;;
status)
status seti
RETVAL=$?
;;
*)
echo "Usage: seti {start|stop|status}"
exit 1
esac
exit $RETVAL