pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/inputmethod/skkserv/files Make this into a proper rc.s...
details: https://anonhg.NetBSD.org/pkgsrc/rev/6b1612ce4943
branches: trunk
changeset: 515629:6b1612ce4943
user: jlam <jlam%pkgsrc.org@localhost>
date: Wed Jul 05 07:09:33 2006 +0000
description:
Make this into a proper rc.subr-using rc.d script.
diffstat:
inputmethod/skkserv/files/skkserv.sh | 25 +++++++------------------
1 files changed, 7 insertions(+), 18 deletions(-)
diffs (37 lines):
diff -r 65423ffbeaeb -r 6b1612ce4943 inputmethod/skkserv/files/skkserv.sh
--- a/inputmethod/skkserv/files/skkserv.sh Wed Jul 05 06:53:12 2006 +0000
+++ b/inputmethod/skkserv/files/skkserv.sh Wed Jul 05 07:09:33 2006 +0000
@@ -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"
Home |
Main Index |
Thread Index |
Old Index