blob: 9e493a420de14812da1c20d22da7df9ad44b63b0 (
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
35
|
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-i18n/rskkserv/files/rskkserv-2.95.initd,v 1.1 2004/11/17 04:08:30 usata Exp $
opts="${opts} reload"
depend() {
need net
}
start() {
ebegin "Starting rskkserv"
start-stop-daemon --start --quiet --exec /usr/sbin/skkserv.rb
eend $?
}
stop() {
ebegin "Stopping rskkserv"
if [ -r /var/run/rskkserv.pid ] ; then
kill -KILL `cat /var/run/rskkserv.pid`
else
eerror "rskkserv not running. Please run /etc/init.d/rskkserv zap"
die
fi
eend $?
}
reload() {
ebegin "Reloading rskkserv"
if [ -r /var/run/rskkserv.pid ] ; then
kill -HUP `cat /var/run/rskkserv.pid`
fi
eend $?
}
|