#!/bin/sh
# description: true type font server
#
# (c) 2004, Eko M. Budi, for Vector Linux
# Released under GNU GPL

# Include the functions declared in the /etc/rc.d/functions file
source /etc/rc.d/functions

# path to binary
ROOT="/usr/X11R6/bin"
# name of binary to run
APP="xfstt"
#runtime options
OPT="--daemon"
#server name
SERVER="Xfstt font server"

case "$1" in
        start)
                echo -n "Starting $SERVER........."
		$ROOT/xfstt --sync >/dev/null
                loadproc $ROOT/$APP $OPT
                ;;

        stop)
                echo -n "Stopping $SERVER........."
                killproc $ROOT/$APP
                ;;

        reload)
                echo -n "Reloading $SERVER........"
                reloadproc $ROOT/$APP
                ;;

        restart)
                $0 stop
                /bin/sleep 1
                $0 start
                ;;

        status)
                statusproc $APP
                ;;

        *)
                echo "Usage: $0 {start|stop|reload|restart|status}"
                exit 1
        ;;

esac

# End /etc/init.d/
