Subject: pkg/11237: japanese/skkserv: applying the new rc.d scheme to the package's start up script
To: None <gnats-bugs@gnats.netbsd.org>
From: None <masao@02.246.ne.jp>
List: netbsd-bugs
Date: 10/15/2000 14:44:11
>Number: 11237
>Category: pkg
>Synopsis: japanese/skkserv: applying the new rc.d scheme to the package's start up script
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Oct 15 14:44:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Masao Uebayashi
>Release: 1.5G
>Organization:
>Environment:
NetBSD takako 1.5G NetBSD 1.5G (TAKAKO) #0: Sat Oct 7 00:31:16 JST 2000 root@takako:/usr/src/sys/arch/i386/compile/TAKAKO i386
>Description:
--- pkgsrc/japanese/skkserv/files/skkserv.sh.orig Fri Dec 24 12:19:23 1999
+++ pkgsrc/japanese/skkserv/files/skkserv.sh Sun Oct 15 01:02:38 2000
@@ -1,7 +1,27 @@
#!/bin/sh
+#
# $NetBSD: skkserv.sh,v 1.1.1.1 1999/12/24 03:19:23 itohy Exp $
+#
+# PROVIDE: skkserv
+# REQUIRE: DAEMON
-if [ -f @PREFIX@/libexec/skkserv ]; then
- echo -n ' skkserv'
- PATH=@PREFIX@/libexec skkserv
-fi
+name="skkserv"
+command="@PREFIX@/libexec/skkserv"
+pidfile=""
+
+cmd=${1:-start}
+
+case ${cmd} in
+start)
+ if [ -x ${command} ]; then
+ echo "Starting ${name}."
+ ${command} 2>&1 > /dev/null
+ fi
+ ;;
+*)
+ if [ -x ${command} ]; then
+ ${command} ${cmd} 2>&1 > /dev/null
+ fi
+ ;;
+esac
+exit 0
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: