diff options
Diffstat (limited to 'japanese/FreeWnn-server/files/cwnn.in')
-rw-r--r-- | japanese/FreeWnn-server/files/cwnn.in | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/japanese/FreeWnn-server/files/cwnn.in b/japanese/FreeWnn-server/files/cwnn.in new file mode 100644 index 000000000000..721bc7d2e881 --- /dev/null +++ b/japanese/FreeWnn-server/files/cwnn.in @@ -0,0 +1,32 @@ +#!/bin/sh +# $FreeBSD$ +# +# PROVIDE: cwnn +# REQUIRE: LOGIN +# KEYWORD: shutdown +# + +. /etc/rc.subr + +name=cwnn +rcvar=cwnn_enable +command=%%PREFIX%%/bin/cWnn4/cserver +procname=%%PREFIX%%/bin/cWnn4/cserver +start_precmd=start_precmd +stop_postcmd=stop_postcmd +WTCMD=%%PREFIX%%/bin/cWnn4/cwnntouch + +start_precmd() +{ + rm -f /tmp/cd_sockV4 + install -d -o wnn -m 755 %%PREFIX%%/lib/wnn/zh_CN/dic/usr + %%PREFIX%%/lib/wnn/zh_CN/dic/sys/* +} + +stop_postcmd() +{ + rm -f /tmp/cd_sockV4 +} + +load_rc_config ${name} +run_rc_command $1 |