summaryrefslogtreecommitdiff
blob: f8ec7628e9db4d5af022ce50e1db8b0e249caabe (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
#!/sbin/runscript
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-i18n/rskkserv/files/rskkserv.initd,v 1.1 2003/09/20 08:48:15 usata Exp $

opts="${opts} reload"

start() {
	ebegin "Starting rskkserv"
	start-stop-daemon --start --quiet --exec /usr/sbin/skkserv.rb || true
	pgrep skkserv.rb >/dev/null 2>&1 || false
	eend $?
}

stop() {
	ebegin "Stopping rskkserv"
	start-stop-daemon --stop --quiet --pidfile /var/run/rskkserv.pid
	eend $?
}

reload() {
	ebegin "Reloading rskkserv"
	if [ -r /var/run/rskkserv.pid ] ; then
		kill -HUP `cat /var/run/rskkserv.pid`
	fi
	eend $?
}