blob: 8a0ea2d1c51018d37e35c352200ac5778a70ab69 (
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
|
#!/sbin/runscript
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/rlocate/files/rlocated.rc,v 1.2 2006/04/18 22:37:21 vapier Exp $
start() {
if [[ ! -e /proc/rlocate ]] ; then
ebegin "Loading rlocate kernel module"
modprobe rlocate
eend $? || return 1
fi
ebegin "Starting rlocated"
rlocated
eend $?
}
stop() {
local ret
ebegin "Stopping rlocated"
start-stop-daemon --stop --quiet --pidfile /var/run/rlocated.pid
ret=$?
eend ${ret}
ebegin "Removing rlocate kernel module"
rmmod rlocate
eend $?
return ${ret}
}
|