summaryrefslogtreecommitdiff
path: root/inputmethod
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2006-07-05 07:09:33 +0000
committerjlam <jlam@pkgsrc.org>2006-07-05 07:09:33 +0000
commit9f8b9a82fc250101366fa6afb2dbb66ff8bb4755 (patch)
treef81a0ab26b75eaf1b1724d6da6362ef1847c07f9 /inputmethod
parent3ba41e8b0cf81719575381c547a3ec3f4987b846 (diff)
downloadpkgsrc-9f8b9a82fc250101366fa6afb2dbb66ff8bb4755.tar.gz
Make this into a proper rc.subr-using rc.d script.
Diffstat (limited to 'inputmethod')
-rw-r--r--inputmethod/skkserv/files/skkserv.sh25
1 files changed, 7 insertions, 18 deletions
diff --git a/inputmethod/skkserv/files/skkserv.sh b/inputmethod/skkserv/files/skkserv.sh
index 59d74b6ff94..d9e1f399584 100644
--- a/inputmethod/skkserv/files/skkserv.sh
+++ b/inputmethod/skkserv/files/skkserv.sh
@@ -1,26 +1,15 @@
#!@RCD_SCRIPTS_SHELL@
#
-# $NetBSD: skkserv.sh,v 1.2 2003/07/29 22:08:29 jmmv Exp $
+# $NetBSD: skkserv.sh,v 1.3 2006/07/05 07:09:33 jlam Exp $
#
# PROVIDE: skkserv
# REQUIRE: DAEMON
+
+. /etc/rc.subr
name="skkserv"
-command="@PREFIX@/libexec/skkserv"
-pidfile=""
-
-cmd=${1:-start}
+rcvar=$name
+command="@PREFIX@/libexec/${name}"
-case ${cmd} in
-start)
- if [ -x ${command} ]; then
- echo "Starting ${name}."
- ${command} > /dev/null 2>&1
- fi
- ;;
-*)
- if [ -x ${command} ]; then
- ${command} ${cmd} > /dev/null 2>&1
- fi
- ;;
-esac
+load_rc_config $name
+run_rc_command "$1"