blob: 5b9d1a28d26bd8e7560be1937cbef5915401d812 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#!/bin/sh
# $FreeBSD$
#
# PROVIDE: kwnn
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
. /etc/rc.subr
name=kwnn
rcvar=kwnn_enable
command=%%PREFIX%%/bin/kWnn4/kserver
procname=%%PREFIX%%/bin/kWnn4/kserver
start_precmd=start_precmd
stop_postcmd=stop_postcmd
WTCMD=%%PREFIX%%/bin/kWnn4/kwnntouch
: ${kwnn_enable:=NO}
start_precmd()
{
rm -f /tmp/kd_sockV4
install -d -o wnn -m 755 %%PREFIX%%/lib/wnn/ko_KR/dic/usr
${WTCMD} %%PREFIX%%/lib/wnn/ko_KR/dic/sys/*
}
stop_postcmd()
{
rm -f /tmp/kd_sockV4
}
load_rc_config $name
run_rc_command $1
|