Hi, I created the following script to start MPrime as an ordinary deamon server. MPrime starts alright, but it stops after a few hours without any error message or whatever. I use SuSE 6.3, MPrime 20.4. Should the new -B switch should be used ? Any other idea ? Thanks a lot in advance, Yann -- Ionix Services, the networks of today http://www.ionix-services.com/ Tel 04 38 12 38 90 Fax 04 38 12 38 94
#! /bin/sh # # Copyright (c) 2000 Yann Forget <[EMAIL PROTECTED]> # To run MPrime to find Mersenne Prime Number # Released under the General Public Licence # See http://www.fsf.org/ and http://www.gnu.org/ # # Author: Yann Forget <[EMAIL PROTECTED]>, 2000 # # /etc/rc.d/mprime # ok="\033[71G\033[32mok\033[m" no_process="\033[71G\033[31m\033[1mNo process\033[m" . /etc/rc.config MPRIME=/home/yann/mprime/mprime USER=yann OUTPUT=/dev/tty8 # This way Mprime is running in the background # and output is display on /dev/tty8 MPRIME_BG="$MPRIME -d" test -x $MPRIME || exit 0 return=$rc_done case "$1" in start) checkproc $MPRIME && { echo "MPrime is already running" exit 0 } echo -n "Starting MPrime" startproc -u $USER $MPRIME_BG > $OUTPUT || return=$rc_failed echo -e "$return" ;; stop) echo -n "Shutting down MPrime" killproc -TERM $MPRIME || return=$rc_failed echo -e "$return" ;; status) echo -n "Checking for MPrime:" checkproc $MPRIME && echo -e $ok || echo -e $no_process ;; *) echo "Usage: $0 {start|stop|status}" exit 1 ;; esac test "$return" = "$rc_done" || exit 1 exit 0
