diff options
author | 2005-12-19 23:38:11 +0000 | |
---|---|---|
committer | 2005-12-19 23:38:11 +0000 | |
commit | 66464b8932d94869afb775fec2c8eebc14e72837 (patch) | |
tree | cbb2f7c6014f0d945829c719e835d07252a51b7c /sys-apps/rlocate/files/rlocated.rc | |
parent | Version bump. (diff) | |
download | gentoo-2-66464b8932d94869afb775fec2c8eebc14e72837.tar.gz gentoo-2-66464b8932d94869afb775fec2c8eebc14e72837.tar.bz2 gentoo-2-66464b8932d94869afb775fec2c8eebc14e72837.zip |
Version bump and add init.d script #113126.
(Portage version: 2.0.53)
Diffstat (limited to 'sys-apps/rlocate/files/rlocated.rc')
-rwxr-xr-x | sys-apps/rlocate/files/rlocated.rc | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/sys-apps/rlocate/files/rlocated.rc b/sys-apps/rlocate/files/rlocated.rc new file mode 100755 index 000000000000..4fccbc6ed53f --- /dev/null +++ b/sys-apps/rlocate/files/rlocated.rc @@ -0,0 +1,24 @@ +#!/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.1 2005/12/19 23:38:11 vapier Exp $ + +checkconfig() { + if [[ ! -e /proc/rlocate ]] ; then + modprobe rlocate || return 1 + fi + return 0 +} + +start() { + checkconfig || return 1 + ebegin "Starting rlocated" + rlocated + eend $? +} + +stop() { + ebegin "Stopping rlocated" + start-stop-daemon --stop --quiet --pidfile /var/run/rlocated.pid + eend $? +} |