3
# This file was automatically customized by debmake on Thu, 14 Nov 1996 01:44:07 +0900
5
# Written by Miquel van Smoorenburg <miquels@drinkel.ow.org>.
6
# Modified for Debian GNU/Linux by Ian Murdock <imurdock@gnu.ai.mit.edu>.
7
# Modified for Debian by Christoph Lameter <clameter@debian.org>
11
# Required-Start: $local_fs $remote_fs
12
# Required-Stop: $local_fs $remote_fs
13
# Default-Start: 2 3 4 5
15
# Short-Description: canna Japanese Input System
16
# Description: Canna provides a unified user interface for inputting Japanese.
19
PATH=/bin:/usr/bin:/sbin:/usr/sbin
20
CANNASERVER=/usr/sbin/cannaserver
21
CANNAKILL=/usr/bin/cannakill
22
CANNA_SERVER_OPT="-u canna"
24
if [ -e /etc/default/canna ] ; then
28
# The following value is extracted by debstd to figure out how to generate
29
# the postinst script. Edit the field to change the way the script is
30
# registered through update-rc.d (see the manpage for update-rc.d!)
33
test -f $CANNASERVER || exit 0
34
test -f $CANNAKILL || exit 0
35
[ "${CANNA_SERVER_RUN}" = "no" ] && exit 0
36
if [ "${CANNA_ENABLE_INET}" = "yes" ] ; then
37
CANNA_INET_OPT="-inet"
46
echo "Starting cannaserver..."
47
$CANNASERVER $CANNA_INET_OPT $CANNA_SERVER_OPT
50
echo "Stopping cannaserver..."
54
echo "Restarting cannaserver..."
56
$CANNASERVER $CANNA_INET_OPT $CANNA_SERVER_OPT
59
echo "Usage: /etc/init.d/$0 {start|stop|restart}"