summaryrefslogtreecommitdiff
path: root/japanese/skkserv
diff options
context:
space:
mode:
authorhubertf <hubertf@pkgsrc.org>2000-10-20 01:29:15 +0000
committerhubertf <hubertf@pkgsrc.org>2000-10-20 01:29:15 +0000
commit54282a55922559daaac10fe868e343e16bb6907d (patch)
tree2d95046dbf324c9d0f423ae401b6ba3c11773dcf /japanese/skkserv
parentabbe875d5d58d404e204b7fff6f6e472c4416ab0 (diff)
downloadpkgsrc-54282a55922559daaac10fe868e343e16bb6907d.tar.gz
Applying the new rc.d scheme to the package's start up script
Patch submitted in PR 11237 by Masao Uebayashi <masao@02.246.ne.jp>
Diffstat (limited to 'japanese/skkserv')
-rw-r--r--japanese/skkserv/files/skkserv.sh29
1 files changed, 24 insertions, 5 deletions
diff --git a/japanese/skkserv/files/skkserv.sh b/japanese/skkserv/files/skkserv.sh
index 838bcd12c0b..5f720005cb4 100644
--- a/japanese/skkserv/files/skkserv.sh
+++ b/japanese/skkserv/files/skkserv.sh
@@ -1,7 +1,26 @@
#!/bin/sh
-# $NetBSD: skkserv.sh,v 1.1.1.1 1999/12/24 03:19:23 itohy Exp $
+#
+# $NetBSD: skkserv.sh,v 1.2 2000/10/20 01:29:15 hubertf Exp $
+#
+# PROVIDE: skkserv
+# REQUIRE: DAEMON
+
+name="skkserv"
+command="@PREFIX@/libexec/skkserv"
+pidfile=""
-if [ -f @PREFIX@/libexec/skkserv ]; then
- echo -n ' skkserv'
- PATH=@PREFIX@/libexec skkserv
-fi
+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