Subject: pkg/17543: canna startup script doesn't consult $canna setting
To: None <gnats-bugs@gnats.netbsd.org>
From: None <itojun@itojun.org>
List: netbsd-bugs
Date: 07/10/2002 22:52:12
>Number:         17543
>Category:       pkg
>Synopsis:       canna startup script doesn't consult $canna setting
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jul 10 06:53:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Jun-ichiro itojun Hagino
>Release:        NetBSD 1.6D
>Organization:
	itojun.org
>Environment:
System: NetBSD starfruit.itojun.org 1.6D NetBSD 1.6D (STARFRUIT) #135: Wed Jul 10 15:06:32 JST 2002 itojun@starfruit.itojun.org:/usr/home/itojun/NetBSD/src/sys/arch/i386/compile/STARFRUIT i386
Architecture: i386
Machine: i386
>Description:
	canna startup script in pkgsrc/inputmethod/canna-lib/files/canna
	does not use standard /etc/rc.subr, and does not consult
	$canna settings in /etc/rc.conf.

>How-To-Repeat:
>Fix:
	the following script assumes that /etc/rc.subr is in place (post-1.5),
	so it may not be appropriate for pre-1.5 systems.

#! /bin/sh
#
# $NetBSD: canna,v 1.2 2002/06/10 09:47:28 sakamoto Exp $
#
# PROVIDE: canna
# REQUIRE: DAEMON

. /etc/rc.subr

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

canna_stop()
{
	@PREFIX@/bin/cannakill
}

load_rc_config "$name"
run_rc_command "$1"
>Release-Note:
>Audit-Trail:
>Unformatted: