#!/bin/sh
#
# jserver       Start/Stop the jserver - Wnn daemon Process.
#
# Author:       Norihito Ohmori <ohmori@flatout.org>
# chkconfig: 2345 92 12
# description: jserver is server client System for KanaKanji-Henkan.
# processname: jserver

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

#

case "$1" in
  start)
        echo -n "Starting jserver: "
        daemon /usr/bin/jserver
        echo
        touch /var/lock/subsys/jserver
        ;;
  stop)
        echo -n "Shutting down jserver: "
        /usr/bin/wnnkill
        echo
        rm -f /var/lock/subsys/jserver
        ;;
  restart)
        $0 stop
        $0 start
        ;;
  *)
        echo "Usage: jserver {start|stop|restart}"
        exit 1
esac

exit 0
