#!/bin/sh
#
# caldera      This script handles the Caldera Font Server
#              
#

# Source function library.
. /etc/rc.d/init.d/functions

[ -f /usr/cfs/fs/cfs ] || exit 0

# See how we were called.
case "$1" in
  start)
	# Start daemons.
	echo -n "Starting Caldera Font Server: "
	# We can not use daemon because cfs doesn't auto-background
	/usr/cfs/fs/cfs -cf /usr/cfs/fs/config &
	echo "cfs "
	touch /var/lock/subsys/cfs
	;;
  stop)
	# Stop daemons.
	echo -n "Shutting down Caldera Font Server: "
	killproc cfs
	rm -f /var/lock/subsys/cfs
	;;
  *)
	echo "Usage: caldera {start|stop}"
	exit 1
esac

exit 0
