summaryrefslogtreecommitdiff
path: root/inputmethod/canna/files/canna.sh
blob: 72d19e74a7feecbf80fd5053400ebb6d6d1f670a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: canna.sh,v 1.1 2003/07/29 19:42:53 jmmv Exp $
#
# PROVIDE: canna
# REQUIRE: DAEMON

if [ -f /etc/rc.subr ]
then
	. /etc/rc.subr
fi

name="canna"
rcvar=$name
command="@PREFIX@/sbin/cannaserver"
stop_cmd="@PREFIX@/sbin/cannakill"

if [ -f /etc/rc.subr -a -d /etc/rc.d -a -f /etc/rc.d/DAEMON ]
then
	load_rc_config $name
	run_rc_command "$1"
else
	@ECHO@ -n ' ${name}'
	${command} ${canna_flags} ${command_args}
fi