#!/bin/sh
#
# Copyright 1994 NEC Corporation, Tokyo, Japan.
#
# Permission to use, copy, modify, distribute and sell this software
# and its documentation for any purpose is hereby granted without
# fee, provided that the above copyright notice appear in all copies
# and that both that copyright notice and this permission notice
# appear in supporting documentation, and that the name of NEC
# Corporation not be used in advertising or publicity pertaining to
# distribution of the software without specific, written prior
# permission.  NEC Corporation makes no representations about the
# suitability of this software for any purpose.  It is provided "as
# is" without express or implied warranty.
#
# NEC CORPORATION DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN 
# NO EVENT SHALL NEC CORPORATION BE LIABLE FOR ANY SPECIAL, INDIRECT OR
# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF 
# USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 
# OTHER TORTUOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 
# PERFORMANCE OF THIS SOFTWARE. 
#
# $Id: canna,v 1.3 1994/01/27 11:11:41 kuma Exp $
#
case $1 in
'start' )
 	#
 	# Start up cannaserver (kana-to-kanji conversion server).
	#
        if [ -f /usr/lib/canna/cannaserver ]
	then
            rm -f /usr/spool/canna/lock/.CANNALOCK*
            /usr/lib/canna/cannaserver
            echo 'Cannaserver started.'
        fi
	;;
'stop' )
	#
	# Kill cannaserver (kana-to-kanji conversion server).
	#
        if [ -f /usr/lib/canna/cannakill ]
	then
	    /usr/lib/canna/cannakill
        fi
	;;
* )
	echo usage : $0 '[ start | stop ]' 
esac
