On dom, 11 apr 1999, Raul Beltran wrote:
> Hello, I have been using redhat 5.2 and i've found it to get slow when
> I run about 5 apps at the same time. Specifically, I run first x11amp,
> that works great, then I start, say 2 kwrite editors, an xterm to
> compile, and everything goes OK, but if i run another app, the x11amp
> gets jumpy... I think that shouldnt happen. I'd like to know if it
> will be the same history under SuSE... or maybe a kernel upgrade will
> help?
>
> I have an AMD-K6 300 Mhz, 64M Ram, SB AWE64, kernel 2.0.36, running
> WindowMaker
>
> and another question...
> I just installed xfstt, and now I would like to know what is the best
> way to start it automatically for all users...
Put the included script into /sbin/init.d
then make a couple of soft link in rc2.d and rc3.d to handle the start and stop
of the server.
Ciao,
Maurizio
#! /bin/bash
#
# Author: Maurizio Firmani <[EMAIL PROTECTED]>, 1998
#
#
# /sbin/init.d/xfstt
#
# Start or Stop the X True Type Font Server
.. /etc/rc.config
DAEMON=/usr/X11R6/bin/xfstt
OPTIONS="--port 7101"
PIDFILE=/var/run/xfstt.pid
xttpid=0
# The echo return value as defined in /etc/rc.config
return=$rc_done
xttrun ()
{
test -s $PIDFILE && xttpid="`cat $PIDFILE`"
pidof -s $DAEMON >/dev/null && return 0
return 1
}
case "$1" in
start)
if xttrun ; then
echo "Warning: $DAEMON is already running"
ps cux$xttpid
else
test -z "$RE" && echo -n "Starting X TrueType font server: $DAEMON... "
$DAEMON $OPTIONS &
test -z "$RE" && echo -e "$return"
fi
;;
stop)
if xttrun ; then
test -z "$RE" && echo -n "Shutting down $DAEMON... "
kill -TERM $xttpid
test -z "$RE" && echo -e "$return"
fi
;;
restart|reload)
export RE=yes
echo -n "Restarting $DAEMON... "
$0 stop
sleep 1
$0 start
echo -e "$return"
;;
check)
echo -n "Checking $DAEMON ... "
if xttrun ; then
echo "is running"
ps cux$xttpid
else
echo "is NOT running"
fi
;;
*)
echo "Usage: $0 {start|stop|restart|check}"
exit 1
esac
exit 0
--
To get out of this list, please send email to [EMAIL PROTECTED] with
this text in its body: unsubscribe suse-linux-e
Check out the SuSE-FAQ at http://www.suse.com/Support/Doku/FAQ/ and the
archive at http://www.suse.com/Mailinglists/suse-linux-e/index.html