blob: 22a6d5fb43e32f683ccea728cf864da3895901d0 (
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
|
#!/sbin/runscript
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
depend() {
need net
}
start() {
if [ -e /var/run/multiskkserv.pid ] ; then
eerror "Anothor pid file is detected."
eerror "If you are sure any multiskkserv is not running,"
eerror "please rm /var/run/multiskkserv manually."
fi
ebegin "Starting multiskkserv"
start-stop-daemon --start --quiet --background \
--make-pidfile --pidfile /var/run/multiskkserv.pid \
/usr/sbin/multiskkserv -- \
-r /usr/share/skk ${SKKJISYO_CDB}
eend $?
}
stop() {
ebegin "Stopping multiskkserv"
start-stop-daemon --stop --quiet -R 5 \
--pidfile /var/run/multiskkserv.pid \
--exec /usr/sbin/multiskkserv
eend $?
}
|