summaryrefslogtreecommitdiff
path: root/inputmethod/ja-freewnn-lib/files/ja_freewnn.sh
diff options
context:
space:
mode:
Diffstat (limited to 'inputmethod/ja-freewnn-lib/files/ja_freewnn.sh')
-rw-r--r--inputmethod/ja-freewnn-lib/files/ja_freewnn.sh34
1 files changed, 34 insertions, 0 deletions
diff --git a/inputmethod/ja-freewnn-lib/files/ja_freewnn.sh b/inputmethod/ja-freewnn-lib/files/ja_freewnn.sh
new file mode 100644
index 00000000000..19caf422e40
--- /dev/null
+++ b/inputmethod/ja-freewnn-lib/files/ja_freewnn.sh
@@ -0,0 +1,34 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: ja_freewnn.sh,v 1.1 2003/07/29 21:13:21 jmmv Exp $
+#
+# PROVIDE: freewnn
+# REQUIRE: DAEMON
+
+. /etc/rc.subr
+
+name="freewnn"
+command_start="@PREFIX@/sbin/jserver"
+command_stop="@PREFIX@/sbin/wnnkill"
+pidfile=""
+
+cmd=${1:-start}
+
+case ${cmd} in
+start)
+ if [ -x ${command_start} ]; then
+ echo "Starting ${name}."
+ ${command_start} >/dev/null 2>&1
+ fi
+ ;;
+stop)
+ if [ -x ${command_stop} ]; then
+ echo "Stopping ${name}."
+ ${command_stop} >/dev/null 2>&1
+ fi
+ ;;
+*)
+ :
+ ;;
+esac
+exit 0